docs_vue2/one/docs/demo/sidenav/normal.vue

85 lines
1.6 KiB
Vue
Raw Normal View History

2020-08-13 11:47:56 +08:00
<template>
<article>
<veui-sidenav :items="items"/>
2020-08-13 11:47:56 +08:00
</article>
</template>
<script>
import { Sidenav } from 'veui'
2020-08-13 11:47:56 +08:00
export default {
name: 'veui-sidenav-demo',
2020-08-13 11:47:56 +08:00
components: {
'veui-sidenav': Sidenav
2020-08-13 11:47:56 +08:00
},
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
}
}
}
</script>