amis2/examples/components/Doc.jsx

714 lines
34 KiB
React
Raw Normal View History

2019-06-11 17:00:02 +08:00
import React from 'react';
2019-05-09 18:25:12 +08:00
import makeMarkdownRenderer from './MdRenderer';
export default {
prefix: ({classnames: cx}) => (<li className={cx('AsideNav-divider')}></li>),
label: '文档',
children: [
{
label: '快速开始',
icon: 'fa fa-flash',
path: '/docs/getting-started',
getComponent: (location, cb) => require(['../../docs/getting_started.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
})
},
2019-07-15 19:29:38 +08:00
{
label: '基本用法',
icon: 'fa fa-file',
path: '/docs/basic',
getComponent: (location, cb) => require(['../../docs/basic.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
})
},
2019-05-09 18:25:12 +08:00
{
label: '高级用法',
icon: 'fa fa-rocket',
path: '/docs/advanced',
getComponent: (location, cb) => require(['../../docs/advanced.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
})
},
{
label: '渲染器手册',
icon: 'fa fa-diamond',
path: '/docs/renderers',
getComponent: (location, cb) => require(['../../docs/renderers.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
children: [
{
label: 'Page',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Page',
2019-05-09 18:25:12 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Page.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Definitions',
path: '/docs/renderers/Definitions',
getComponent: (location, cb) => require(['../../docs/renderers/Definitions.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-09 18:25:12 +08:00
{
label: 'Form',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Form',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Form.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
children: [
{
label: 'FormItem',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/FormItem',
getComponent: (location, cb) => require(['../../docs/renderers/Form/FormItem.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'List',
path: '/docs/renderers/Form/List',
getComponent: (location, cb) => require(['../../docs/renderers/Form/List.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'Button-Group',
path: '/docs/renderers/Form/Button-Group',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Button-Group.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'Service',
path: '/docs/renderers/Form/Service',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Service.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'Tabs',
path: '/docs/renderers/Form/Tabs',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Tabs.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'Table',
path: '/docs/renderers/Form/Table',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Table.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'HBox',
path: '/docs/renderers/Form/HBox',
getComponent: (location, cb) => require(['../../docs/renderers/Form/HBox.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'Grid',
path: '/docs/renderers/Form/Grid',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Grid.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-05-28 11:56:51 +08:00
label: 'Panel',
2019-06-04 10:11:24 +08:00
path: '/docs/renderers/Form/Panel',
2019-05-28 11:56:51 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Form/Panel.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Hidden',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Hidden',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Hidden.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Text',
2019-06-04 10:11:24 +08:00
path: '/docs/renderers/Form/Text',
2019-05-28 11:56:51 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Form/Text.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-07-17 10:16:40 +08:00
{
label: 'Input-Group',
path: '/docs/renderers/Form/Input-Group',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Input-Group.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-09 18:25:12 +08:00
{
label: 'Textarea',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Textarea',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Textarea.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Url',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Url',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Url.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Email',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Email',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Email.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Password',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Password',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Password.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Number',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Number',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Number.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Select',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Select',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Select.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Chained-Select',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Chained-Select',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Chained-Select.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Checkbox',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Checkbox',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Checkbox.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Checkboxes',
2019-06-04 10:11:24 +08:00
path: '/docs/renderers/Form/Checkboxes',
2019-05-28 11:56:51 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Form/Checkboxes.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-27 14:45:20 +08:00
{
label: 'City',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/City',
getComponent: (location, cb) => require(['../../docs/renderers/Form/City.md'], (doc) => {
2019-05-27 14:45:20 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-09 18:25:12 +08:00
{
label: 'Radios',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Radios',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Radios.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Switch',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Switch',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Switch.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-07-04 16:24:13 +08:00
{
label: 'Rating',
path: '/docs/renderers/Form/Rating',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Rating.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-09 18:25:12 +08:00
{
label: 'Date',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Date',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Date.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Datetime',
2019-06-04 10:11:24 +08:00
path: '/docs/renderers/Form/Datetime',
2019-05-28 11:56:51 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Form/Datetime.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Time',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Time',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Time.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Date-Range',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Date-Range',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Date-Range.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Color',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Color',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Color.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Range',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Range',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Range.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Image',
2019-06-04 10:11:24 +08:00
path: '/docs/renderers/Form/Image',
2019-05-28 11:56:51 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Form/Image.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'File',
2019-06-04 10:11:24 +08:00
path: '/docs/renderers/Form/File',
2019-05-28 11:56:51 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Form/File.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Matrix',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Matrix',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Matrix.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Tree',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Tree',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Tree.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'TreeSelect',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/TreeSelect',
getComponent: (location, cb) => require(['../../docs/renderers/Form/TreeSelect.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'NestedSelect',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/NestedSelect',
getComponent: (location, cb) => require(['../../docs/renderers/Form/NestedSelect.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Button',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Button',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Button.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Button-Toolbar',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Button-Toolbar',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Button-Toolbar.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Combo',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Combo',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Combo.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Array',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Array',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Array.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'SubForm',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/SubForm',
getComponent: (location, cb) => require(['../../docs/renderers/Form/SubForm.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Picker',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Picker',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Picker.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Formula',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Formula',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Formula.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Group',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Group',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Group.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'FieldSet',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/FieldSet',
getComponent: (location, cb) => require(['../../docs/renderers/Form/FieldSet.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Repeat',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Repeat',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Repeat.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Rich-Text',
2019-05-28 11:56:51 +08:00
path: '/docs/renderers/Form/Rich-Text',
getComponent: (location, cb) => require(['../../docs/renderers/Form/Rich-Text.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Editor',
2019-06-04 10:11:24 +08:00
path: '/docs/renderers/Form/Editor',
2019-05-28 11:56:51 +08:00
getComponent: (location, cb) => require(['../../docs/renderers/Form/Editor.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Static',
path: '/docs/renderers/Static',
getComponent: (location, cb) => require(['../../docs/renderers/Static.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
]
},
2019-07-04 16:24:13 +08:00
{
label: 'Divider',
path: '/docs/renderers/Divider',
getComponent: (location, cb) => require(['../../docs/renderers/Divider.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-09 18:25:12 +08:00
{
label: 'Wizard',
path: '/docs/renderers/Wizard',
getComponent: (location, cb) => require(['../../docs/renderers/Wizard.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Tpl',
path: '/docs/renderers/Tpl',
getComponent: (location, cb) => require(['../../docs/renderers/Tpl.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Plain',
path: '/docs/renderers/Plain',
getComponent: (location, cb) => require(['../../docs/renderers/Plain.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Html',
path: '/docs/renderers/Html',
getComponent: (location, cb) => require(['../../docs/renderers/Html.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-07-03 16:05:49 +08:00
{
label: 'Alert',
path: '/docs/renderers/Alert',
getComponent: (location, cb) => require(['../../docs/renderers/Alert.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-09 18:25:12 +08:00
{
label: 'Action',
path: '/docs/renderers/Action',
getComponent: (location, cb) => require(['../../docs/renderers/Action.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Dialog',
path: '/docs/renderers/Dialog',
getComponent: (location, cb) => require(['../../docs/renderers/Dialog.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Drawer',
path: '/docs/renderers/Drawer',
getComponent: (location, cb) => require(['../../docs/renderers/Drawer.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'CRUD',
path: '/docs/renderers/CRUD',
getComponent: (location, cb) => require(['../../docs/renderers/CRUD.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
children: [
{
label: 'CRUD-Table',
path: '/docs/renderers/CRUD-Table',
getComponent: (location, cb) => require(['../../docs/renderers/CRUD-Table.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'CRUD-Cards',
path: '/docs/renderers/CRUD-Cards',
getComponent: (location, cb) => require(['../../docs/renderers/CRUD-Cards.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'CRUD-List',
path: '/docs/renderers/CRUD-List',
getComponent: (location, cb) => require(['../../docs/renderers/CRUD-List.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
}
]
},
{
label: 'Panel',
path: '/docs/renderers/Panel',
getComponent: (location, cb) => require(['../../docs/renderers/Panel.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Wrapper',
path: '/docs/renderers/Wrapper',
getComponent: (location, cb) => require(['../../docs/renderers/Wrapper.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Service',
path: '/docs/renderers/Service',
getComponent: (location, cb) => require(['../../docs/renderers/Service.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Chart',
path: '/docs/renderers/Chart',
getComponent: (location, cb) => require(['../../docs/renderers/Chart.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Collapse',
path: '/docs/renderers/Collapse',
getComponent: (location, cb) => require(['../../docs/renderers/Collapse.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-16 16:31:20 +08:00
{
label: 'Carousel',
path: '/docs/renderers/Carousel',
getComponent: (location, cb) => require(['../../docs/renderers/Carousel.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
2019-05-09 18:25:12 +08:00
{
label: 'Audio',
path: '/docs/renderers/Audio',
getComponent: (location, cb) => require(['../../docs/renderers/Audio.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Video',
path: '/docs/renderers/Video',
getComponent: (location, cb) => require(['../../docs/renderers/Video.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Table',
path: '/docs/renderers/Table',
getComponent: (location, cb) => require(['../../docs/renderers/Table.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
children: [
{
label: 'Column',
path: '/docs/renderers/Column',
getComponent: (location, cb) => require(['../../docs/renderers/Column.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
]
},
{
label: 'List',
path: '/docs/renderers/List',
getComponent: (location, cb) => require(['../../docs/renderers/List.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Card',
path: '/docs/renderers/Card',
getComponent: (location, cb) => require(['../../docs/renderers/Card.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Cards',
path: '/docs/renderers/Cards',
getComponent: (location, cb) => require(['../../docs/renderers/Cards.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Field',
path: '/docs/renderers/Field',
getComponent: (location, cb) => require(['../../docs/renderers/Field.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Tabs',
path: '/docs/renderers/Tabs',
getComponent: (location, cb) => require(['../../docs/renderers/Tabs.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Grid',
path: '/docs/renderers/Grid',
getComponent: (location, cb) => require(['../../docs/renderers/Grid.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'HBox',
path: '/docs/renderers/HBox',
getComponent: (location, cb) => require(['../../docs/renderers/HBox.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
2019-07-04 14:21:32 +08:00
label: 'ButtonGroup',
path: '/docs/renderers/ButtonGroup',
getComponent: (location, cb) => require(['../../docs/renderers/ButtonGroup.md'], (doc) => {
2019-05-09 18:25:12 +08:00
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'iFrame',
path: '/docs/renderers/iFrame',
getComponent: (location, cb) => require(['../../docs/renderers/iFrame.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Nav',
path: '/docs/renderers/Nav',
getComponent: (location, cb) => require(['../../docs/renderers/Nav.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'Tasks',
path: '/docs/renderers/Tasks',
getComponent: (location, cb) => require(['../../docs/renderers/Tasks.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: 'QRCode',
path: '/docs/renderers/QRCode',
getComponent: (location, cb) => require(['../../docs/renderers/QRCode.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
{
label: '类型说明',
path: '/docs/renderers/Types',
getComponent: (location, cb) => require(['../../docs/renderers/Types.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
}),
},
]
},
{
2019-07-15 19:29:38 +08:00
label: '如何定制',
2019-05-09 18:25:12 +08:00
path: '/docs/sdk',
icon: 'fa fa-cubes',
getComponent: (location, cb) => require(['../../docs/sdk.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
})
},
{
label: '自定义组件',
path: '/docs/dev',
icon: 'fa fa-code',
getComponent: (location, cb) => require(['../../docs/dev.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
})
},
{
label: '样式说明',
path: '/docs/style',
icon: 'fa fa-laptop',
getComponent: (location, cb) => require(['../../docs/style.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc));
})
}
]
}