diff --git a/components/OneDemo.vue b/components/OneDemo.vue index 1a245ef..4964fe6 100644 --- a/components/OneDemo.vue +++ b/components/OneDemo.vue @@ -164,6 +164,9 @@ export default { this.code = this.$refs.source?.querySelector('pre')?.textContent || '' }, + destroyed () { + modal.close() + }, methods: { play (vendor) { let locale = getLocale(this.$route.path) diff --git a/one/docs/demo/sidenav/normal.vue b/one/docs/demo/sidenav/normal.vue index 07a244a..6d8c8b8 100644 --- a/one/docs/demo/sidenav/normal.vue +++ b/one/docs/demo/sidenav/normal.vue @@ -13,71 +13,70 @@ export default { 'veui-sidenav': Sidenav }, data () { - let items = [ - { - label: 'Group One', - name: 'group-one', - children: [ - { - label: 'Sub One', - name: 'sub-one', - children: [ - { - label: 'Input', - to: '/components/input' - } - ] - }, - { - label: 'Loading', - name: 'Loading', - to: '/components/loading', - children: [ - { - label: 'Switch', - to: '/components/switch' - } - ] - } - ] - }, - { - label: 'Button', - name: 'Button', - to: '/components/button', - children: [ - { - label: 'Disabled', - name: 'Disabled', - disabled: true, - children: [ - { - label: 'Link', - name: 'Link', - to: '/components/link' - } - ] - } - ] - }, - { - label: 'Navigation Three', - name: 'nav-three', - disabled: true - }, - { - label: 'Navigation Four', - name: 'nav-four', - children: [ - { - label: 'Progress', - to: '/components/progress' - } - ] - } - ] return { - items + items: [ + { + label: 'Basic', + children: [ + { + label: 'Button', + to: '/components/button' + }, + { + label: 'Dropdown', + to: '/components/dropdown' + } + ] + }, + { + label: 'Groups', + children: [ + { + label: 'RadioGroup', + to: '/components/radio-group' + }, + { + label: 'CheckboxGroup', + to: '/components/checkbox-group' + } + ] + }, + { + label: 'Form Controls', + children: [ + { + label: 'Text Fields', + children: [ + { + label: 'Input', + to: '/components/input' + }, + { + label: 'Textarea', + to: '/components/textarea' + } + ] + }, + { + label: 'Pickers', + children: [ + { + label: 'Select', + to: '/components/select' + }, + { + label: 'DatePicker', + to: '/components/date-picker' + }, + { + label: 'TimePicker', + to: '/components/time-picker' + } + ] + } + ] + } + ] } } } diff --git a/one/docs/nav.json b/one/docs/nav.json index 98926a4..0d0ea13 100644 --- a/one/docs/nav.json +++ b/one/docs/nav.json @@ -308,7 +308,7 @@ "slug": "drawer" }, { - "title": "Sidenav - 边栏菜单", + "title": "Sidenav - 侧导航", "slug": "sidenav" }, {