2021-09-17 00:18:50 +08:00
|
|
|
<template>
|
2022-11-26 13:52:20 +08:00
|
|
|
<div class="m-4">
|
|
|
|
<p>Select any level of options (Single selection)</p>
|
2021-12-10 18:31:15 +08:00
|
|
|
<el-cascader :options="options" :props="props1" clearable />
|
2021-09-17 00:18:50 +08:00
|
|
|
</div>
|
2022-11-26 13:52:20 +08:00
|
|
|
<div class="m-4">
|
|
|
|
<p>Select any level of options (Multiple selection)</p>
|
2021-12-10 18:31:15 +08:00
|
|
|
<el-cascader :options="options" :props="props2" clearable />
|
2021-09-17 00:18:50 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2021-12-21 15:51:33 +08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
const props1 = {
|
|
|
|
checkStrictly: true,
|
|
|
|
}
|
2021-09-17 00:18:50 +08:00
|
|
|
|
2021-12-21 15:51:33 +08:00
|
|
|
const props2 = {
|
|
|
|
multiple: true,
|
|
|
|
checkStrictly: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
const options = [
|
|
|
|
{
|
|
|
|
value: 'guide',
|
|
|
|
label: 'Guide',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'disciplines',
|
|
|
|
label: 'Disciplines',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'consistency',
|
|
|
|
label: 'Consistency',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'feedback',
|
|
|
|
label: 'Feedback',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'efficiency',
|
|
|
|
label: 'Efficiency',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'controllability',
|
|
|
|
label: 'Controllability',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'navigation',
|
|
|
|
label: 'Navigation',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'side nav',
|
|
|
|
label: 'Side Navigation',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'top nav',
|
|
|
|
label: 'Top Navigation',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'component',
|
|
|
|
label: 'Component',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'basic',
|
|
|
|
label: 'Basic',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'layout',
|
|
|
|
label: 'Layout',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'color',
|
|
|
|
label: 'Color',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'typography',
|
|
|
|
label: 'Typography',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'icon',
|
|
|
|
label: 'Icon',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'button',
|
|
|
|
label: 'Button',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'form',
|
|
|
|
label: 'Form',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'radio',
|
|
|
|
label: 'Radio',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'checkbox',
|
|
|
|
label: 'Checkbox',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'input',
|
|
|
|
label: 'Input',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'input-number',
|
|
|
|
label: 'InputNumber',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'select',
|
|
|
|
label: 'Select',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'cascader',
|
|
|
|
label: 'Cascader',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'switch',
|
|
|
|
label: 'Switch',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'slider',
|
|
|
|
label: 'Slider',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'time-picker',
|
|
|
|
label: 'TimePicker',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'date-picker',
|
|
|
|
label: 'DatePicker',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'datetime-picker',
|
|
|
|
label: 'DateTimePicker',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'upload',
|
|
|
|
label: 'Upload',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'rate',
|
|
|
|
label: 'Rate',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'form',
|
|
|
|
label: 'Form',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'data',
|
|
|
|
label: 'Data',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'table',
|
|
|
|
label: 'Table',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'tag',
|
|
|
|
label: 'Tag',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'progress',
|
|
|
|
label: 'Progress',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'tree',
|
|
|
|
label: 'Tree',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'pagination',
|
|
|
|
label: 'Pagination',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'badge',
|
|
|
|
label: 'Badge',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'notice',
|
|
|
|
label: 'Notice',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'alert',
|
|
|
|
label: 'Alert',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'loading',
|
|
|
|
label: 'Loading',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'message',
|
|
|
|
label: 'Message',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'message-box',
|
|
|
|
label: 'MessageBox',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'notification',
|
|
|
|
label: 'Notification',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'navigation',
|
|
|
|
label: 'Navigation',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'menu',
|
|
|
|
label: 'Menu',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'tabs',
|
|
|
|
label: 'Tabs',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'breadcrumb',
|
|
|
|
label: 'Breadcrumb',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'dropdown',
|
|
|
|
label: 'Dropdown',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'steps',
|
|
|
|
label: 'Steps',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'others',
|
|
|
|
label: 'Others',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'dialog',
|
|
|
|
label: 'Dialog',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'tooltip',
|
|
|
|
label: 'Tooltip',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'popover',
|
|
|
|
label: 'Popover',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'card',
|
|
|
|
label: 'Card',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'carousel',
|
|
|
|
label: 'Carousel',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'collapse',
|
|
|
|
label: 'Collapse',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'resource',
|
|
|
|
label: 'Resource',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
value: 'axure',
|
|
|
|
label: 'Axure Components',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'sketch',
|
|
|
|
label: 'Sketch Templates',
|
2021-12-10 18:31:15 +08:00
|
|
|
},
|
2021-12-21 15:51:33 +08:00
|
|
|
{
|
|
|
|
value: 'docs',
|
|
|
|
label: 'Design Documentation',
|
2021-12-10 18:31:15 +08:00
|
|
|
},
|
2021-12-21 15:51:33 +08:00
|
|
|
],
|
2021-09-17 00:18:50 +08:00
|
|
|
},
|
2021-12-21 15:51:33 +08:00
|
|
|
]
|
2021-09-17 00:18:50 +08:00
|
|
|
</script>
|