mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
5844947198
* refactor(components): [select&select-v2] refactor components * refactor(components): [select-v2] * refactor(components): update * refactor(components): update * refactor(components): [select-v2] update * refactor(components): update * refactor(components): update * refactor(components): update type * refactor(components): update * refactor(components): update * refactor(components): update style * refactor(components): update docs * refactor(components): update * refactor(components): fix #15323 * refactor(theme-chalk): update * refactor(components): update * refactor(components): update * refactor(components): update * refactor(components): fix bugs * fix(components): fix issue * fix(components): update * fix(components): fix some bug * feat(components): update * feat(components): add tag slot * feat(components): update * fix(components): update * style(theme-chalk): update style * fix(theme-chalk): update * feat(theme-chalk): update * fix(components): update * feat: update * feat: update * feat: update * feat(components): update
95 lines
1.6 KiB
Vue
95 lines
1.6 KiB
Vue
<template>
|
|
<el-tree-select
|
|
v-model="value"
|
|
:data="data"
|
|
:render-after-expand="false"
|
|
style="width: 240px"
|
|
/>
|
|
<el-divider />
|
|
show checkbox:
|
|
<el-tree-select
|
|
v-model="value"
|
|
:data="data"
|
|
:render-after-expand="false"
|
|
show-checkbox
|
|
style="width: 240px"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const value = ref()
|
|
|
|
const data = [
|
|
{
|
|
value: '1',
|
|
label: 'Level one 1',
|
|
children: [
|
|
{
|
|
value: '1-1',
|
|
label: 'Level two 1-1',
|
|
children: [
|
|
{
|
|
value: '1-1-1',
|
|
label: 'Level three 1-1-1',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
value: '2',
|
|
label: 'Level one 2',
|
|
children: [
|
|
{
|
|
value: '2-1',
|
|
label: 'Level two 2-1',
|
|
children: [
|
|
{
|
|
value: '2-1-1',
|
|
label: 'Level three 2-1-1',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
value: '2-2',
|
|
label: 'Level two 2-2',
|
|
children: [
|
|
{
|
|
value: '2-2-1',
|
|
label: 'Level three 2-2-1',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
value: '3',
|
|
label: 'Level one 3',
|
|
children: [
|
|
{
|
|
value: '3-1',
|
|
label: 'Level two 3-1',
|
|
children: [
|
|
{
|
|
value: '3-1-1',
|
|
label: 'Level three 3-1-1',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
value: '3-2',
|
|
label: 'Level two 3-2',
|
|
children: [
|
|
{
|
|
value: '3-2-1',
|
|
label: 'Level three 3-2-1',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
]
|
|
</script>
|