naive-ui/demo/menuOptions.js

947 lines
29 KiB
JavaScript
Raw Normal View History

2020-02-04 23:13:53 +08:00
const appendCounts = item => {
if (!item.childItems) {
item.count = 1
return item
}
if (item.childItems) {
item.childItems.forEach(appendCounts)
item.count = item.childItems.reduce((sum, item) => sum + item.count, 0)
if (!item.group) {
item.title = h => {
return h('n-config-consumer', {
props: {
2020-02-24 16:25:02 +08:00
abstract: true
2020-02-04 23:13:53 +08:00
},
scopedSlots: {
default: ({ styleScheme }) => {
return h('span', {
}, [ item.name, h('span', {
style: {
color: styleScheme.tertiaryTextColor,
fontWeight: '400',
transition: `color .3s ${styleScheme.easeInOutCubicBezier}`
}
}, [ ' (', item.count, ')' ])])
}
}
})
}
} else {
item.name += ` (${item.count})`
}
return item
}
}
const appendDebugDemos = (item) => {
if (process.env.NODE_ENV === 'development') {
2020-02-26 12:41:50 +08:00
return [item]
} else return []
}
2020-02-04 23:13:53 +08:00
export default function (locale, instance) {
if (locale === 'zh-CN') {
return [
{
name: 'Naive UI',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/intro'
2020-02-04 23:13:53 +08:00
},
{
name: 'Getting Started',
title: '起步',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/start'
2020-02-04 23:13:53 +08:00
},
// {
// name: 'Develop Guidelines',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/dev-guildlines'
2020-02-04 23:13:53 +08:00
// },
{
name: 'Create Themed Component',
2020-02-05 13:13:48 +08:00
title: '创建适配主题的组件',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-theme'
2020-02-04 23:13:53 +08:00
},
appendCounts({
name: '配置组件',
group: true,
childItems: [
{
name: 'Config Provider',
2020-02-07 00:05:44 +08:00
title: '配置提供者',
titleExtra: 'Config Provider',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-config-provider'
2020-02-04 23:13:53 +08:00
},
{
name: 'Config Consumer',
2020-02-07 00:05:44 +08:00
title: '配置消费者 ',
titleExtra: 'Config Consumer',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-config-consumer'
2020-02-04 23:13:53 +08:00
},
{
name: 'Element',
2020-02-07 00:05:44 +08:00
title: '元素',
titleExtra: 'Element',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-element'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: '布局组件',
group: true,
childItems: [
{
name: 'Layout',
2020-02-07 00:05:44 +08:00
title: '布局',
titleExtra: 'Layout',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-layout'
2020-02-04 23:13:53 +08:00
},
{
name: 'Grid',
2020-02-07 00:05:44 +08:00
title: '栅格',
titleExtra: 'Grid',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-grid'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: '通用组件',
group: true,
childItems: [
{
name: 'Avatar',
2020-02-07 00:05:44 +08:00
title: '头像',
titleExtra: 'Avatar',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-avatar'
2020-02-04 23:13:53 +08:00
},
{
name: 'Button',
2020-02-07 00:05:44 +08:00
title: '按钮',
titleExtra: 'Button',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-button'
2020-02-04 23:13:53 +08:00
},
{
name: 'Card',
2020-02-07 00:05:44 +08:00
title: '卡片',
titleExtra: 'Card',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-card'
2020-02-04 23:13:53 +08:00
},
{
name: 'Collapse',
2020-02-07 00:05:44 +08:00
title: '折叠面板',
titleExtra: 'Collapse',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-collapse'
2020-02-04 23:13:53 +08:00
},
{
name: 'Divider',
2020-02-07 00:05:44 +08:00
title: '分割线',
titleExtra: 'Divider',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-divider'
2020-02-04 23:13:53 +08:00
},
{
name: 'Dropdown',
2020-02-07 00:05:44 +08:00
title: '下拉菜单',
titleExtra: 'Dropdown',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-dropdown'
2020-02-04 23:13:53 +08:00
},
{
name: 'Gradient Text',
2020-02-07 00:05:44 +08:00
title: '渐变文字',
titleExtra: 'Gradient Text',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-gradient-text'
2020-02-04 23:13:53 +08:00
},
{
name: 'Icon',
2020-02-07 00:05:44 +08:00
title: '图标',
titleExtra: 'Icon',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-icon'
2020-02-04 23:13:53 +08:00
},
{
name: 'Tag',
2020-02-07 00:05:44 +08:00
title: '标签',
titleExtra: 'Tag',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tag'
2020-02-04 23:13:53 +08:00
},
{
name: 'Typography',
2020-02-07 00:05:44 +08:00
title: '排版',
titleExtra: 'Typography',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-typography'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: '数据录入组件',
group: true,
childItems: [
{
name: 'Auto Complete',
2020-02-07 00:05:44 +08:00
title: '自动填充',
titleExtra: 'Auto Complete',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-auto-complete'
2020-02-04 23:13:53 +08:00
},
{
name: 'Cascader',
2020-02-07 00:05:44 +08:00
title: '级联选择',
titleExtra: 'Cascader',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-cascader'
2020-02-04 23:13:53 +08:00
},
{
name: 'Checkbox',
2020-02-07 00:05:44 +08:00
title: '复选框',
titleExtra: 'Checkbox',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-checkbox'
2020-02-04 23:13:53 +08:00
},
{
name: 'Custom Input (in progress)',
2020-02-07 00:05:44 +08:00
title: '自定义输入',
titleExtra: 'Custom Input',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-custom-input'
2020-02-04 23:13:53 +08:00
},
{
name: 'Date Picker',
2020-02-07 00:05:44 +08:00
title: '日期选择器',
titleExtra: 'Date Picker',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-date-picker'
2020-02-04 23:13:53 +08:00
},
{
name: 'Form',
2020-02-07 00:05:44 +08:00
title: '表单',
titleExtra: 'Form',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-form'
2020-02-04 23:13:53 +08:00
},
{
name: 'Input',
2020-02-07 00:05:44 +08:00
title: '文本输入',
titleExtra: 'Input',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-input'
2020-02-04 23:13:53 +08:00
},
{
name: 'Input Number',
2020-02-07 00:05:44 +08:00
title: '数字输入',
titleExtra: 'Input Number',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-input-number'
2020-02-04 23:13:53 +08:00
},
{
name: 'Radio',
2020-02-07 00:05:44 +08:00
title: '单选',
titleExtra: 'Radio',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-radio'
2020-02-04 23:13:53 +08:00
},
{
name: 'Select',
2020-02-07 00:05:44 +08:00
title: '选择器',
titleExtra: 'Select',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-select'
2020-02-04 23:13:53 +08:00
},
{
name: 'Slider',
2020-02-07 00:05:44 +08:00
title: '滑动选择',
titleExtra: 'Slider',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-slider'
2020-02-04 23:13:53 +08:00
},
{
name: 'Switch',
2020-02-07 00:05:44 +08:00
title: '开关',
titleExtra: 'Switch',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-switch'
2020-02-04 23:13:53 +08:00
},
{
name: 'Time Picker',
2020-02-07 00:05:44 +08:00
title: '时间选择器',
titleExtra: 'Time Picker',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-time-picker'
2020-02-04 23:13:53 +08:00
},
{
name: 'Transfer',
2020-02-07 00:05:44 +08:00
title: '穿梭框',
titleExtra: 'Transfer',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-transfer'
2020-02-17 09:55:20 +08:00
},
{
name: 'Upload',
title: '上传',
titleExtra: 'Upload',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-upload'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: '数据展示组件',
group: true,
childItems: [
{
name: 'Code',
2020-02-07 00:05:44 +08:00
title: '代码',
titleExtra: 'Code',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-code'
2020-02-04 23:13:53 +08:00
},
{
name: 'Data Table',
2020-02-07 00:05:44 +08:00
title: '数据表格',
titleExtra: 'Data Table',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-data-table'
2020-02-04 23:13:53 +08:00
},
{
name: 'Descriptions',
2020-02-07 00:05:44 +08:00
title: '描述',
titleExtra: 'Descriptions',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-descriptions'
2020-02-04 23:13:53 +08:00
},
{
name: 'Empty',
2020-02-07 00:05:44 +08:00
title: '无内容',
titleExtra: 'Empty',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-empty'
2020-02-04 23:13:53 +08:00
},
{
name: 'List',
2020-02-07 00:05:44 +08:00
title: '列表',
titleExtra: 'List',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-list'
2020-02-04 23:13:53 +08:00
},
{
name: 'Log',
2020-02-07 00:05:44 +08:00
title: '日志',
titleExtra: 'Log',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-log'
2020-02-04 23:13:53 +08:00
},
{
name: 'Statistic',
2020-02-07 00:05:44 +08:00
title: '统计数据',
titleExtra: 'Statistic',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-statistic'
2020-02-04 23:13:53 +08:00
},
2020-02-21 15:26:51 +08:00
{
name: 'Table',
title: '表格',
titleExtra: 'Table',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-table'
2020-02-21 15:26:51 +08:00
},
2020-02-04 23:13:53 +08:00
{
name: 'Thing',
2020-02-07 00:05:44 +08:00
title: '东西',
titleExtra: 'Thing',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-thing'
2020-02-04 23:13:53 +08:00
},
{
name: 'Time',
2020-02-21 15:26:51 +08:00
title: '时间',
2020-02-07 00:05:44 +08:00
titleExtra: 'Time',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-time'
2020-02-04 23:13:53 +08:00
},
{
name: 'Timeline',
2020-02-07 00:05:44 +08:00
title: '时间线',
titleExtra: 'Timeline',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-timeline'
2020-02-04 23:13:53 +08:00
},
{
2020-02-25 23:16:18 +08:00
name: 'Tree',
2020-02-07 00:05:44 +08:00
title: '树',
titleExtra: 'Tree',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tree'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: '导航组件',
group: true,
childItems: [
{
name: 'Affix',
2020-02-07 00:05:44 +08:00
title: '固钉',
titleExtra: 'Affix',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-affix'
2020-02-04 23:13:53 +08:00
},
{
name: 'Anchor',
2020-02-07 00:05:44 +08:00
title: '侧边导航',
titleExtra: 'Anchor',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-anchor'
2020-02-04 23:13:53 +08:00
},
{
name: 'Back Top',
2020-02-07 00:05:44 +08:00
title: '回到顶部',
titleExtra: 'Back Top',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-back-top'
2020-02-04 23:13:53 +08:00
},
{
name: 'Breadcrumb',
2020-02-07 00:05:44 +08:00
title: '面包屑',
titleExtra: 'Breadcrumb',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-breadcrumb'
2020-02-04 23:13:53 +08:00
},
{
name: 'Loading Bar',
2020-02-07 00:05:44 +08:00
title: '加载条',
titleExtra: 'Loading Bar',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-loading-bar'
2020-02-04 23:13:53 +08:00
},
{
name: 'Menu',
2020-02-07 00:05:44 +08:00
title: '菜单',
titleExtra: 'Menu',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-menu'
2020-02-04 23:13:53 +08:00
},
{
name: 'Pagination',
2020-02-07 00:05:44 +08:00
title: '分页',
titleExtra: 'Pagination',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-pagination'
2020-02-04 23:13:53 +08:00
},
{
name: 'Steps',
2020-02-07 00:05:44 +08:00
title: '步骤',
titleExtra: 'Steps',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-steps'
2020-02-04 23:13:53 +08:00
},
{
name: 'Tabs',
2020-02-07 00:05:44 +08:00
title: '标签页',
titleExtra: 'Tabs',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tabs'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: '反馈组件',
group: true,
childItems: [
{
name: 'Alert',
2020-02-07 00:05:44 +08:00
title: '警告信息',
titleExtra: 'Alerts',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-alert'
2020-02-04 23:13:53 +08:00
},
{
name: 'Badge',
2020-02-07 00:05:44 +08:00
title: '标记',
titleExtra: 'Badge',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-badge'
2020-02-04 23:13:53 +08:00
},
{
name: 'Confirm',
2020-02-07 00:05:44 +08:00
title: '确认',
titleExtra: 'Confirm',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-confirm'
2020-02-04 23:13:53 +08:00
},
{
name: 'Drawer',
2020-02-07 00:05:44 +08:00
title: '抽屉',
titleExtra: 'Drawer',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-drawer'
2020-02-04 23:13:53 +08:00
},
{
name: 'Message',
2020-02-07 00:05:44 +08:00
title: '信息',
titleExtra: 'Message',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-message'
2020-02-04 23:13:53 +08:00
},
{
name: 'Modal',
2020-02-07 00:05:44 +08:00
title: '模态框',
titleExtra: 'Modal',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-modal'
2020-02-04 23:13:53 +08:00
},
{
name: 'Notification',
2020-02-07 00:05:44 +08:00
title: '通知',
titleExtra: 'Notification',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-notification'
2020-02-04 23:13:53 +08:00
},
{
name: 'Popover',
2020-02-07 00:05:44 +08:00
title: '弹出信息',
titleExtra: 'Popover',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-popover'
2020-02-04 23:13:53 +08:00
},
{
name: 'Popconfirm',
2020-02-07 00:05:44 +08:00
title: '弹出确认',
titleExtra: 'Popconfirm',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-popconfirm'
2020-02-04 23:13:53 +08:00
},
{
name: 'Popselect',
2020-02-07 00:05:44 +08:00
title: '弹出选择',
titleExtra: 'Popselect',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-popselect'
2020-02-04 23:13:53 +08:00
},
{
name: 'Progress',
2020-02-07 00:05:44 +08:00
title: '进度',
titleExtra: 'Progress',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-progress'
2020-02-04 23:13:53 +08:00
},
{
name: 'Result',
2020-02-07 00:05:44 +08:00
title: '结果页',
titleExtra: 'Result',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-result'
2020-02-04 23:13:53 +08:00
},
{
name: 'Spin',
2020-02-07 00:05:44 +08:00
title: '加载',
titleExtra: 'Spin',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-spin'
2020-02-04 23:13:53 +08:00
},
{
name: 'Tooltip',
2020-02-07 00:05:44 +08:00
title: '弹出提示',
titleExtra: 'Tooltip',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tooltip'
2020-02-04 23:13:53 +08:00
}
]
})
// {
// name: '废弃的',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/',
2020-02-04 23:13:53 +08:00
// childItems: [
// {
// name: '服务布局',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-nimbus-service-layout'
2020-02-04 23:13:53 +08:00
// }
// ]
// },
// {
// name: 'Debug',
// childItems: [
// {
// name: 'CancelMarkDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-base-suffix-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'PopoverDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-popover-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'RouterDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-router-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'ModalDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-modal-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'ScrollbarDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-scrollbar-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'ScrollbarDebug2',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-scrollbar-debug2'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'DatePickerDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-date-picker-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'BackTopDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-back-top-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'CascaderDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-cascader-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'VerticalAlignDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-vertical-align-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'IconTransitionDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-icon-transition-debug'
2020-02-04 23:13:53 +08:00
// },
// {
// name: 'SelectDebug',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/n-select-debug'
2020-02-04 23:13:53 +08:00
// }
// ]
// }
]
} else {
return [
{
name: 'Naive UI',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/intro'
2020-02-04 23:13:53 +08:00
},
{
name: 'Getting Started',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/start'
2020-02-04 23:13:53 +08:00
},
// {
// name: 'Develop Guidelines',
2020-02-27 18:09:23 +08:00
// path: `/${instance.lang}/${instance.theme}/doc` + '/dev-guildlines'
2020-02-04 23:13:53 +08:00
// },
{
name: 'Create Themed Component',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-theme'
2020-02-04 23:13:53 +08:00
},
appendCounts({
name: 'Config Components',
group: true,
childItems: [
{
name: 'Config Provider',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-config-provider'
2020-02-04 23:13:53 +08:00
},
{
name: 'Config Consumer',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-config-consumer'
2020-02-04 23:13:53 +08:00
},
{
name: 'Element',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-element'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: 'Layout Components',
group: true,
childItems: [
{
name: 'Layout',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-layout'
2020-02-04 23:13:53 +08:00
},
{
name: 'Grid',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-grid'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: 'Common Components',
group: true,
childItems: [
{
name: 'Avatar',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-avatar'
2020-02-04 23:13:53 +08:00
},
{
name: 'Button',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-button'
2020-02-04 23:13:53 +08:00
},
{
name: 'Card',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-card'
2020-02-04 23:13:53 +08:00
},
{
name: 'Collapse',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-collapse'
2020-02-04 23:13:53 +08:00
},
{
name: 'Divider',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-divider'
2020-02-04 23:13:53 +08:00
},
{
name: 'Dropdown',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-dropdown'
2020-02-04 23:13:53 +08:00
},
{
name: 'Gradient Text',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-gradient-text'
2020-02-04 23:13:53 +08:00
},
{
name: 'Icon',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-icon'
2020-02-04 23:13:53 +08:00
},
{
name: 'Tag',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tag'
2020-02-04 23:13:53 +08:00
},
{
name: 'Typography',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-typography'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: 'Data Input Components',
group: true,
childItems: [
{
name: 'Auto Complete',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-auto-complete'
2020-02-04 23:13:53 +08:00
},
{
name: 'Cascader',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-cascader'
2020-02-04 23:13:53 +08:00
},
{
name: 'Checkbox',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-checkbox'
2020-02-04 23:13:53 +08:00
},
{
name: 'Custom Input (in progress)',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-custom-input'
2020-02-04 23:13:53 +08:00
},
{
name: 'Date Picker',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-date-picker'
2020-02-04 23:13:53 +08:00
},
{
name: 'Form',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-form'
2020-02-04 23:13:53 +08:00
},
{
name: 'Input',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-input'
2020-02-04 23:13:53 +08:00
},
{
name: 'Input Number',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-input-number'
2020-02-04 23:13:53 +08:00
},
{
name: 'Radio',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-radio'
2020-02-04 23:13:53 +08:00
},
{
name: 'Select',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-select'
2020-02-04 23:13:53 +08:00
},
{
name: 'Slider',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-slider'
2020-02-04 23:13:53 +08:00
},
{
name: 'Switch',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-switch'
2020-02-04 23:13:53 +08:00
},
{
name: 'Time Picker',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-time-picker'
2020-02-04 23:13:53 +08:00
},
{
name: 'Transfer',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-transfer'
2020-02-17 09:55:20 +08:00
},
{
name: 'Upload',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-upload'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: 'Data Display Components',
group: true,
childItems: [
{
name: 'Code',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-code'
2020-02-04 23:13:53 +08:00
},
{
name: 'Data Table',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-data-table'
2020-02-04 23:13:53 +08:00
},
{
name: 'Descriptions',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-descriptions'
2020-02-04 23:13:53 +08:00
},
{
name: 'Empty',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-empty'
2020-02-04 23:13:53 +08:00
},
{
name: 'List',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-list'
2020-02-04 23:13:53 +08:00
},
{
name: 'Log',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-log'
2020-02-04 23:13:53 +08:00
},
{
name: 'Statistic',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-statistic'
2020-02-04 23:13:53 +08:00
},
2020-02-21 15:26:51 +08:00
{
name: 'Table',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-table'
2020-02-21 15:26:51 +08:00
},
2020-02-04 23:13:53 +08:00
{
name: 'Thing',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-thing'
2020-02-04 23:13:53 +08:00
},
{
name: 'Time',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-time'
2020-02-04 23:13:53 +08:00
},
{
name: 'Timeline',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-timeline'
2020-02-04 23:13:53 +08:00
},
{
2020-02-25 23:16:18 +08:00
name: 'Tree',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tree'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: 'Navigation Components',
group: true,
childItems: [
{
name: 'Affix',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-affix'
2020-02-04 23:13:53 +08:00
},
{
name: 'Anchor',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-anchor'
2020-02-04 23:13:53 +08:00
},
{
name: 'Back Top',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-back-top'
2020-02-04 23:13:53 +08:00
},
{
name: 'Breadcrumb',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-breadcrumb'
2020-02-04 23:13:53 +08:00
},
{
name: 'Loading Bar',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-loading-bar'
2020-02-04 23:13:53 +08:00
},
{
name: 'Menu',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-menu'
2020-02-04 23:13:53 +08:00
},
{
name: 'Pagination',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-pagination'
2020-02-04 23:13:53 +08:00
},
{
name: 'Steps',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-steps'
2020-02-04 23:13:53 +08:00
},
{
name: 'Tabs',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tabs'
2020-02-04 23:13:53 +08:00
}
]
}),
appendCounts({
name: 'Feedback Components',
group: true,
childItems: [
{
name: 'Alert',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-alert'
2020-02-04 23:13:53 +08:00
},
{
name: 'Badge',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-badge'
2020-02-04 23:13:53 +08:00
},
{
name: 'Confirm',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-confirm'
2020-02-04 23:13:53 +08:00
},
{
name: 'Drawer',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-drawer'
2020-02-04 23:13:53 +08:00
},
{
name: 'Message',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-message'
2020-02-04 23:13:53 +08:00
},
{
name: 'Modal',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-modal'
2020-02-04 23:13:53 +08:00
},
{
name: 'Notification',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-notification'
2020-02-04 23:13:53 +08:00
},
{
name: 'Popover',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-popover'
2020-02-04 23:13:53 +08:00
},
{
name: 'Popconfirm',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-popconfirm'
2020-02-04 23:13:53 +08:00
},
{
name: 'Popselect',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-popselect'
2020-02-04 23:13:53 +08:00
},
{
name: 'Progress',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-progress'
2020-02-04 23:13:53 +08:00
},
{
name: 'Result',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-result'
2020-02-04 23:13:53 +08:00
},
{
name: 'Spin',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-spin'
2020-02-04 23:13:53 +08:00
},
{
name: 'Tooltip',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-tooltip'
2020-02-04 23:13:53 +08:00
}
]
}),
{
name: 'Deprecated',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/',
2020-02-04 23:13:53 +08:00
childItems: [
{
name: 'Nimbus Service Layout',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-nimbus-service-layout'
2020-02-04 23:13:53 +08:00
}
]
},
2020-02-26 12:41:50 +08:00
...appendDebugDemos(
{
name: 'Debug',
childItems: [
{
name: 'SuffixDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-base-suffix-debug'
},
{
name: 'PopoverDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-popover-debug'
},
{
name: 'RouterDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-router-debug'
},
{
name: 'ModalDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-modal-debug'
},
{
name: 'ScrollbarDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-scrollbar-debug'
},
{
name: 'ScrollbarDebug2',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-scrollbar-debug2'
},
{
name: 'DatePickerDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-date-picker-debug'
},
{
name: 'BackTopDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-back-top-debug'
},
{
name: 'CascaderDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-cascader-debug'
},
{
name: 'VerticalAlignDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-vertical-align-debug'
},
{
name: 'IconTransitionDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-icon-transition-debug'
},
{
name: 'SelectDebug',
2020-02-27 18:09:23 +08:00
path: `/${instance.lang}/${instance.theme}/doc` + '/n-select-debug'
}
]
})
2020-02-04 23:13:53 +08:00
]
}
}