naive-ui/demo/menu-options.js

913 lines
25 KiB
JavaScript
Raw Normal View History

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