From eda4bb9d6ce216b5764009445cc7c3b76fa3cbc9 Mon Sep 17 00:00:00 2001 From: wuduoyi Date: Thu, 26 Dec 2019 10:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9B=AE=E5=BD=95=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E6=8C=89=E5=AD=97=E6=AF=8D=E6=8E=92=E5=BA=8F=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E6=9F=A5=E6=89=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/Doc.jsx | 1024 ++++++++++++++++++----------------- 1 file changed, 526 insertions(+), 498 deletions(-) diff --git a/examples/components/Doc.jsx b/examples/components/Doc.jsx index c8338e4e3..9995adf89 100644 --- a/examples/components/Doc.jsx +++ b/examples/components/Doc.jsx @@ -45,14 +45,123 @@ export default { }), children: [ { - label: 'Page', - path: '/docs/renderers/Page', + label: 'Action', + path: '/docs/renderers/Action', getComponent: (location, cb) => - require(['../../docs/renderers/Page.md'], doc => { + require(['../../docs/renderers/Action.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, + { + label: 'Alert', + path: '/docs/renderers/Alert', + getComponent: (location, cb) => + require(['../../docs/renderers/Alert.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'Audio', + path: '/docs/renderers/Audio', + getComponent: (location, cb) => + require(['../../docs/renderers/Audio.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'ButtonGroup', + path: '/docs/renderers/ButtonGroup', + getComponent: (location, cb) => + require(['../../docs/renderers/ButtonGroup.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'Carousel', + path: '/docs/renderers/Carousel', + getComponent: (location, cb) => + require(['../../docs/renderers/Carousel.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: '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)); + }) + }, + + { + 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: 'Definitions', path: '/docs/renderers/Definitions', @@ -62,6 +171,51 @@ export default { }) }, + { + label: 'Divider', + path: '/docs/renderers/Divider', + getComponent: (location, cb) => + require(['../../docs/renderers/Divider.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: 'Each', + path: '/docs/renderers/Each', + getComponent: (location, cb) => + require(['../../docs/renderers/Each.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: 'Form', path: '/docs/renderers/Form/Form', @@ -71,23 +225,31 @@ export default { }), children: [ { - label: 'FormItem', - path: '/docs/renderers/Form/FormItem', + label: 'Array', + path: '/docs/renderers/Form/Array', getComponent: (location, cb) => - require(['../../docs/renderers/Form/FormItem.md'], doc => { + require(['../../docs/renderers/Form/Array.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, - { - label: 'List', - path: '/docs/renderers/Form/List', + label: 'Button', + path: '/docs/renderers/Form/Button', getComponent: (location, cb) => - require(['../../docs/renderers/Form/List.md'], doc => { + require(['../../docs/renderers/Form/Button.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Button-Toolbar', + path: '/docs/renderers/Form/Button-Toolbar', + getComponent: (location, cb) => + require([ + '../../docs/renderers/Form/Button-Toolbar.md' + ], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, - { label: 'Button-Group', path: '/docs/renderers/Form/Button-Group', @@ -96,139 +258,6 @@ export default { cb(null, makeMarkdownRenderer(doc)); }) }, - - { - label: 'Service', - path: '/docs/renderers/Form/Service', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Service.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - - { - label: 'Tabs', - path: '/docs/renderers/Form/Tabs', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Tabs.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - - { - label: 'Table', - path: '/docs/renderers/Form/Table', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Table.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - - { - label: 'HBox', - path: '/docs/renderers/Form/HBox', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/HBox.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - - { - label: 'Grid', - path: '/docs/renderers/Form/Grid', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Grid.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Panel', - path: '/docs/renderers/Form/Panel', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Panel.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Hidden', - path: '/docs/renderers/Form/Hidden', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Hidden.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Text', - path: '/docs/renderers/Form/Text', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Text.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Input-Group', - path: '/docs/renderers/Form/Input-Group', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Input-Group.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Textarea', - path: '/docs/renderers/Form/Textarea', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Textarea.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Url', - path: '/docs/renderers/Form/Url', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Url.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Email', - path: '/docs/renderers/Form/Email', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Email.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Password', - path: '/docs/renderers/Form/Password', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Password.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Number', - path: '/docs/renderers/Form/Number', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Number.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Tag', - path: '/docs/renderers/Form/Tag', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Tag.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Select', - path: '/docs/renderers/Form/Select', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Select.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, { label: 'Chained-Select', path: '/docs/renderers/Form/Chained-Select', @@ -264,26 +293,18 @@ export default { }) }, { - label: 'Radios', - path: '/docs/renderers/Form/Radios', + label: 'Color', + path: '/docs/renderers/Form/Color', getComponent: (location, cb) => - require(['../../docs/renderers/Form/Radios.md'], doc => { + require(['../../docs/renderers/Form/Color.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, { - label: 'Switch', - path: '/docs/renderers/Form/Switch', + label: 'Combo', + path: '/docs/renderers/Form/Combo', getComponent: (location, cb) => - require(['../../docs/renderers/Form/Switch.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Rating', - path: '/docs/renderers/Form/Rating', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Rating.md'], doc => { + require(['../../docs/renderers/Form/Combo.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, @@ -303,14 +324,6 @@ export default { cb(null, makeMarkdownRenderer(doc)); }) }, - { - label: 'Time', - path: '/docs/renderers/Form/Time', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Time.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, { label: 'Date-Range', path: '/docs/renderers/Form/Date-Range', @@ -320,18 +333,83 @@ export default { }) }, { - label: 'Color', - path: '/docs/renderers/Form/Color', + label: 'Editor', + path: '/docs/renderers/Form/Editor', getComponent: (location, cb) => - require(['../../docs/renderers/Form/Color.md'], doc => { + require(['../../docs/renderers/Form/Editor.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, { - label: 'Range', - path: '/docs/renderers/Form/Range', + label: 'Email', + path: '/docs/renderers/Form/Email', getComponent: (location, cb) => - require(['../../docs/renderers/Form/Range.md'], doc => { + require(['../../docs/renderers/Form/Email.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'File', + path: '/docs/renderers/Form/File', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/File.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'FieldSet', + path: '/docs/renderers/Form/FieldSet', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/FieldSet.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Formula', + path: '/docs/renderers/Form/Formula', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Formula.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'FormItem', + path: '/docs/renderers/Form/FormItem', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/FormItem.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Grid', + path: '/docs/renderers/Form/Grid', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Grid.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Group', + path: '/docs/renderers/Form/Group', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Group.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'HBox', + path: '/docs/renderers/Form/HBox', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/HBox.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Hidden', + path: '/docs/renderers/Form/Hidden', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Hidden.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, @@ -344,10 +422,18 @@ export default { }) }, { - label: 'File', - path: '/docs/renderers/Form/File', + label: 'Input-Group', + path: '/docs/renderers/Form/Input-Group', getComponent: (location, cb) => - require(['../../docs/renderers/Form/File.md'], doc => { + require(['../../docs/renderers/Form/Input-Group.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'List', + path: '/docs/renderers/Form/List', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/List.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, @@ -359,6 +445,177 @@ export default { cb(null, makeMarkdownRenderer(doc)); }) }, + { + label: 'NestedSelect', + path: '/docs/renderers/Form/NestedSelect', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/NestedSelect.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Number', + path: '/docs/renderers/Form/Number', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Number.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Panel', + path: '/docs/renderers/Form/Panel', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Panel.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Password', + path: '/docs/renderers/Form/Password', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Password.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Picker', + path: '/docs/renderers/Form/Picker', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Picker.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'Radios', + path: '/docs/renderers/Form/Radios', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Radios.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Rating', + path: '/docs/renderers/Form/Rating', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Rating.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Range', + path: '/docs/renderers/Form/Range', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Range.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Repeat', + path: '/docs/renderers/Form/Repeat', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Repeat.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'Rich-Text', + path: '/docs/renderers/Form/Rich-Text', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Rich-Text.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Select', + path: '/docs/renderers/Form/Select', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Select.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Switch', + path: '/docs/renderers/Form/Switch', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Switch.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Service', + path: '/docs/renderers/Form/Service', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Service.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'SubForm', + path: '/docs/renderers/Form/SubForm', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/SubForm.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Static', + path: '/docs/renderers/Static', + getComponent: (location, cb) => + require(['../../docs/renderers/Static.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Tabs', + path: '/docs/renderers/Form/Tabs', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Tabs.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'Table', + path: '/docs/renderers/Form/Table', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Table.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Tag', + path: '/docs/renderers/Form/Tag', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Tag.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Text', + path: '/docs/renderers/Form/Text', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Text.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Textarea', + path: '/docs/renderers/Form/Textarea', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Textarea.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { + label: 'Time', + path: '/docs/renderers/Form/Time', + getComponent: (location, cb) => + require(['../../docs/renderers/Form/Time.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, { label: 'Tree', path: '/docs/renderers/Form/Tree', @@ -376,161 +633,34 @@ export default { }) }, { - label: 'NestedSelect', - path: '/docs/renderers/Form/NestedSelect', + label: 'Url', + path: '/docs/renderers/Form/Url', getComponent: (location, cb) => - require(['../../docs/renderers/Form/NestedSelect.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Button', - path: '/docs/renderers/Form/Button', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Button.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Button-Toolbar', - path: '/docs/renderers/Form/Button-Toolbar', - getComponent: (location, cb) => - require([ - '../../docs/renderers/Form/Button-Toolbar.md' - ], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Combo', - path: '/docs/renderers/Form/Combo', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Combo.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Array', - path: '/docs/renderers/Form/Array', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Array.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'SubForm', - path: '/docs/renderers/Form/SubForm', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/SubForm.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Picker', - path: '/docs/renderers/Form/Picker', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Picker.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Formula', - path: '/docs/renderers/Form/Formula', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Formula.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Group', - path: '/docs/renderers/Form/Group', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Group.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'FieldSet', - path: '/docs/renderers/Form/FieldSet', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/FieldSet.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Repeat', - path: '/docs/renderers/Form/Repeat', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Repeat.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Rich-Text', - path: '/docs/renderers/Form/Rich-Text', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Rich-Text.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Editor', - path: '/docs/renderers/Form/Editor', - getComponent: (location, cb) => - require(['../../docs/renderers/Form/Editor.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Static', - path: '/docs/renderers/Static', - getComponent: (location, cb) => - require(['../../docs/renderers/Static.md'], doc => { + require(['../../docs/renderers/Form/Url.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) } ] }, + { - label: 'Divider', - path: '/docs/renderers/Divider', + label: 'Grid', + path: '/docs/renderers/Grid', getComponent: (location, cb) => - require(['../../docs/renderers/Divider.md'], doc => { + require(['../../docs/renderers/Grid.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, + { - label: 'Wizard', - path: '/docs/renderers/Wizard', + label: 'HBox', + path: '/docs/renderers/HBox', getComponent: (location, cb) => - require(['../../docs/renderers/Wizard.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - label: 'Each', - path: '/docs/renderers/Each', - getComponent: (location, cb) => - require(['../../docs/renderers/Each.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 => { + require(['../../docs/renderers/HBox.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, + { label: 'Html', path: '/docs/renderers/Html', @@ -539,74 +669,34 @@ export default { cb(null, makeMarkdownRenderer(doc)); }) }, - { - label: 'Alert', - path: '/docs/renderers/Alert', - getComponent: (location, cb) => - require(['../../docs/renderers/Alert.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - 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: 'iFrame', + path: '/docs/renderers/iFrame', + getComponent: (location, cb) => + require(['../../docs/renderers/iFrame.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: 'Nav', + path: '/docs/renderers/Nav', + getComponent: (location, cb) => + require(['../../docs/renderers/Nav.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { label: 'Panel', path: '/docs/renderers/Panel', @@ -615,11 +705,30 @@ export default { cb(null, makeMarkdownRenderer(doc)); }) }, + { - label: 'Wrapper', - path: '/docs/renderers/Wrapper', + label: 'Page', + path: '/docs/renderers/Page', getComponent: (location, cb) => - require(['../../docs/renderers/Wrapper.md'], doc => { + require(['../../docs/renderers/Page.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: 'QRCode', + path: '/docs/renderers/QRCode', + getComponent: (location, cb) => + require(['../../docs/renderers/QRCode.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) }, @@ -631,46 +740,7 @@ export default { 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)); - }) - }, - { - label: 'Carousel', - path: '/docs/renderers/Carousel', - getComponent: (location, cb) => - require(['../../docs/renderers/Carousel.md'], doc => { - cb(null, makeMarkdownRenderer(doc)); - }) - }, - { - 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', @@ -697,38 +767,7 @@ export default { } ] }, - { - 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', @@ -737,47 +776,7 @@ export default { 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)); - }) - }, - { - label: 'ButtonGroup', - path: '/docs/renderers/ButtonGroup', - getComponent: (location, cb) => - require(['../../docs/renderers/ButtonGroup.md'], doc => { - 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', @@ -786,14 +785,43 @@ export default { cb(null, makeMarkdownRenderer(doc)); }) }, + { - label: 'QRCode', - path: '/docs/renderers/QRCode', + label: 'Tpl', + path: '/docs/renderers/Tpl', getComponent: (location, cb) => - require(['../../docs/renderers/QRCode.md'], doc => { + require(['../../docs/renderers/Tpl.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: 'Wrapper', + path: '/docs/renderers/Wrapper', + getComponent: (location, cb) => + require(['../../docs/renderers/Wrapper.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + + { + label: 'Wizard', + path: '/docs/renderers/Wizard', + getComponent: (location, cb) => + require(['../../docs/renderers/Wizard.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) + }, + { label: '类型说明', path: '/docs/renderers/Types',