96 lines
1.7 KiB
Vue
96 lines
1.7 KiB
Vue
<template>
|
|
<article>
|
|
<section>
|
|
<veui-menu
|
|
:items="items"
|
|
collapsible
|
|
>
|
|
<template #icon>
|
|
<veui-icon name="calendar"/>
|
|
</template>
|
|
</veui-menu>
|
|
</section>
|
|
</article>
|
|
</template>
|
|
|
|
<script>
|
|
import { Menu, Icon } from 'veui'
|
|
import 'veui-theme-dls-icons/calendar'
|
|
|
|
export default {
|
|
name: 'veui-menu-demo',
|
|
components: {
|
|
'veui-menu': Menu,
|
|
'veui-icon': Icon
|
|
},
|
|
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: '/switch'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
label: 'Button',
|
|
name: 'Button',
|
|
to: '/components/button',
|
|
children: [
|
|
{
|
|
label: 'Disabled',
|
|
name: 'Disabled',
|
|
disabled: true,
|
|
children: [
|
|
{
|
|
label: 'Link',
|
|
name: 'Link',
|
|
to: '/link'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
label: 'Navigation Three',
|
|
name: 'nav-three',
|
|
disabled: true
|
|
},
|
|
{
|
|
label: 'Navigation Four',
|
|
name: 'nav-four',
|
|
children: [
|
|
{
|
|
label: 'Progress',
|
|
to: '/components/progress'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
return {
|
|
items
|
|
}
|
|
}
|
|
}
|
|
</script>
|