2018-07-17 22:03:45 +08:00
|
|
|
export default {
|
|
|
|
|
path: '/demo/components',
|
2018-07-25 09:47:43 +08:00
|
|
|
title: '内置组件',
|
2018-07-17 22:03:45 +08:00
|
|
|
icon: 'puzzle-piece',
|
|
|
|
|
children: (pre => [
|
|
|
|
|
{ path: `${pre}index`, title: '扩展组件首页', icon: 'home' },
|
|
|
|
|
{
|
|
|
|
|
path: `${pre}container`,
|
|
|
|
|
title: '布局容器',
|
|
|
|
|
icon: 'window-restore',
|
|
|
|
|
children: [
|
2018-11-15 17:00:12 +08:00
|
|
|
{
|
|
|
|
|
title: '填充型',
|
|
|
|
|
children: [
|
2018-11-16 16:08:29 +08:00
|
|
|
{ path: `${pre}container/full`, title: '基础', icon: '' },
|
|
|
|
|
{ path: `${pre}container/full-slot`, title: '插槽', icon: '' },
|
|
|
|
|
{ path: `${pre}container/full-bs`, title: '滚动优化', icon: '' }
|
2018-11-15 17:00:12 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '隐形模式',
|
|
|
|
|
children: [
|
2018-11-16 16:08:29 +08:00
|
|
|
{ path: `${pre}container/ghost`, title: '基础', icon: '' },
|
|
|
|
|
{ path: `${pre}container/ghost-slot`, title: '插槽', icon: '' },
|
|
|
|
|
{ path: `${pre}container/ghost-bs`, title: '滚动优化', icon: '' }
|
2018-11-15 17:00:12 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '卡片型',
|
|
|
|
|
children: [
|
2018-11-16 16:08:29 +08:00
|
|
|
{ path: `${pre}container/card`, title: '基础', icon: '' },
|
|
|
|
|
{ path: `${pre}container/card-slot`, title: '插槽', icon: '' },
|
|
|
|
|
{ path: `${pre}container/card-bs`, title: '滚动优化', icon: '' }
|
2018-11-15 17:00:12 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '方法',
|
|
|
|
|
children: [
|
2018-11-16 16:08:29 +08:00
|
|
|
{ path: `${pre}container/api?bs=false`, title: '滚动控制', icon: '' },
|
|
|
|
|
{ path: `${pre}container/api?bs=true`, title: '滚动控制 BS', icon: '' }
|
2018-11-15 17:00:12 +08:00
|
|
|
]
|
|
|
|
|
}
|
2018-07-17 22:03:45 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: `${pre}layout/grid`,
|
|
|
|
|
title: '高级布局',
|
|
|
|
|
icon: 'tasks',
|
|
|
|
|
children: [
|
|
|
|
|
{ path: `${pre}layout/grid`, title: '拖拽位置和大小' },
|
|
|
|
|
{ path: `${pre}layout/splitpane`, title: '区域划分' }
|
|
|
|
|
]
|
|
|
|
|
},
|
2018-11-17 18:07:48 +08:00
|
|
|
{
|
|
|
|
|
path: `${pre}editor`,
|
|
|
|
|
title: '编辑器',
|
|
|
|
|
icon: 'pencil-square-o',
|
|
|
|
|
children: [
|
|
|
|
|
{ path: `${pre}editor-ueditor`, title: 'UEditor', icon: '' },
|
|
|
|
|
{ path: `${pre}editor-quill`, title: 'Quill', icon: '' },
|
|
|
|
|
{ path: `${pre}editor-simpleMDE`, title: 'simpleMDE', icon: '' }
|
|
|
|
|
]
|
|
|
|
|
},
|
2018-07-17 22:03:45 +08:00
|
|
|
{
|
|
|
|
|
path: `${pre}icon`,
|
|
|
|
|
title: '图标',
|
|
|
|
|
icon: 'star',
|
|
|
|
|
children: [
|
|
|
|
|
{ path: `${pre}icon/icon`, title: '图标组件' },
|
|
|
|
|
{ path: `${pre}icon/list`, title: 'FontAwesome' },
|
|
|
|
|
{ path: `${pre}icon/select`, title: '图标选择器' },
|
|
|
|
|
{ path: `${pre}icon/svg`, title: 'SVG图标组件' }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: `${pre}markdown`,
|
|
|
|
|
title: 'markdown 解析',
|
|
|
|
|
icon: 'file-text-o',
|
|
|
|
|
children: [
|
|
|
|
|
{ path: `${pre}markdown/source`, title: '指定资源' },
|
|
|
|
|
{ path: `${pre}markdown/url`, title: '异步加载文件' }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: `${pre}contextmenu`,
|
|
|
|
|
title: '右键菜单',
|
|
|
|
|
icon: 'mouse-pointer',
|
|
|
|
|
children: [
|
|
|
|
|
{ path: `${pre}contextmenu/simple`, title: '基础' },
|
|
|
|
|
{ path: `${pre}contextmenu/divier`, title: '分割线' },
|
|
|
|
|
{ path: `${pre}contextmenu/group`, title: '按钮组' },
|
|
|
|
|
{ path: `${pre}contextmenu/submenu`, title: '子菜单' },
|
|
|
|
|
{ path: `${pre}contextmenu/disabled`, title: '禁用' },
|
|
|
|
|
{ path: `${pre}contextmenu/custom-trigger`, title: '自定义事件' }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{ path: `${pre}countup`, title: '数字动画', icon: 'motorcycle' },
|
|
|
|
|
{ path: `${pre}highlight`, title: '代码高亮显示', icon: 'code' },
|
|
|
|
|
{ path: `${pre}json-tree`, title: 'JSON 展示', icon: 'sitemap' }
|
|
|
|
|
])('/demo/components/')
|
|
|
|
|
}
|