docs_vue2/one/docs/demo/dropdown/disable.vue
2021-09-15 20:03:51 +08:00

106 lines
1.7 KiB
Vue

<template>
<article>
<veui-dropdown
label="Operation"
disabled
ui="text"
:options="options"
/>
<veui-dropdown
label="Operation"
disabled
:options="options"
/>
<veui-dropdown
label="Operation"
disabled
ui="primary"
:options="options"
/>
<veui-dropdown
label="Operation"
disabled
split
:options="options"
/>
<veui-dropdown
label="Operation"
disabled
split
ui="primary"
:options="options"
/>
</article>
</template>
<script>
import { Dropdown } from 'veui'
export default {
components: {
'veui-dropdown': Dropdown
},
data () {
return {
options: [
{
label: '新建',
value: 'create'
},
{
label: '编辑',
value: 'edit',
disabled: true
},
{
label: '删除',
value: 'remove'
},
{
label: '编辑',
value: 'edit',
disabled: true
},
{
label: '删除',
value: 'remove'
},
{
label: '编辑',
value: 'edit',
disabled: true
},
{
label: '删除',
value: 'remove'
},
{
label: '编辑',
value: 'edit',
disabled: true
},
{
label: '删除',
value: 'remove'
},
{
label: '编辑',
value: 'edit',
disabled: true
},
{
label: '删除',
value: 'remove'
}
]
}
}
}
</script>
<style lang="less" scoped>
.veui-dropdown {
margin-left: 1em;
}
</style>