mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-21 01:13:16 +08:00
docs(menu): enUS
This commit is contained in:
parent
643be6d843
commit
c2f5cb3137
@ -23,7 +23,7 @@ Use collapsable vertical menu with layout sider. Use `collapsed` to control coll
|
||||
</n-layout-sider>
|
||||
<n-layout>
|
||||
<n-layout-content>
|
||||
<span>内容</span>
|
||||
<span>Content</span>
|
||||
</n-layout-content>
|
||||
</n-layout>
|
||||
</n-layout>
|
||||
|
@ -45,7 +45,7 @@ const menuItems = [
|
||||
icon: renderIcon(BookIcon)
|
||||
},
|
||||
{
|
||||
title: '舞,舞,舞',
|
||||
title: 'Dance',
|
||||
key: 'Dance Dance Dance',
|
||||
icon: renderIcon(BookIcon),
|
||||
children: [
|
||||
|
@ -51,7 +51,7 @@ const menuItems = [
|
||||
icon: renderIcon(BookIcon)
|
||||
},
|
||||
{
|
||||
title: '舞,舞,舞',
|
||||
title: 'Dance Dance Dance',
|
||||
key: 'Dance Dance Dance',
|
||||
icon: renderIcon(BookIcon),
|
||||
children: [
|
||||
|
@ -45,7 +45,7 @@ const menuItems = [
|
||||
icon: renderIcon(BookIcon)
|
||||
},
|
||||
{
|
||||
title: '舞,舞,舞',
|
||||
title: 'Dance Dance Dance',
|
||||
key: 'Dance Dance Dance',
|
||||
icon: renderIcon(BookIcon),
|
||||
children: [
|
||||
|
@ -29,7 +29,6 @@ const createDebugDemos = (item, mode) => {
|
||||
function createItems (lang, items) {
|
||||
if (lang === 'zh-CN') return items
|
||||
function traverse (children) {
|
||||
console.log(children)
|
||||
children.forEach(child => {
|
||||
child.title = undefined
|
||||
child.titleExtra = undefined
|
||||
|
@ -472,3 +472,19 @@ const naive = create({
|
||||
|
||||
app.use(naive)
|
||||
```
|
||||
|
||||
## 2020.11.14 是否要给 icon 加上默认的 color transition?
|
||||
否。
|
||||
前提条件是 svg 在合适的地方用到了 currentColor。
|
||||
|
||||
for example:
|
||||
```
|
||||
<n-icon>
|
||||
<svg>
|
||||
<line stroke="currentColor">
|
||||
</svg>
|
||||
</n-icon>
|
||||
```
|
||||
|
||||
我期望的是 n-icon 一直跟着外部走,如果外面有 transtion 了那内部其实不需要 transition,不然的话会重叠。
|
||||
如果一定需要 transition 的话应该去保证样式带 color transition。
|
Loading…
Reference in New Issue
Block a user