docs(menu): enUS

This commit is contained in:
07akioni 2020-11-14 21:59:02 +08:00
parent 643be6d843
commit c2f5cb3137
6 changed files with 20 additions and 5 deletions

View File

@ -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>

View File

@ -45,7 +45,7 @@ const menuItems = [
icon: renderIcon(BookIcon)
},
{
title: '舞,舞,舞',
title: 'Dance',
key: 'Dance Dance Dance',
icon: renderIcon(BookIcon),
children: [

View File

@ -51,7 +51,7 @@ const menuItems = [
icon: renderIcon(BookIcon)
},
{
title: '舞,舞,舞',
title: 'Dance Dance Dance',
key: 'Dance Dance Dance',
icon: renderIcon(BookIcon),
children: [

View File

@ -45,7 +45,7 @@ const menuItems = [
icon: renderIcon(BookIcon)
},
{
title: '舞,舞,舞',
title: 'Dance Dance Dance',
key: 'Dance Dance Dance',
icon: renderIcon(BookIcon),
children: [

View File

@ -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

View File

@ -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。