[tree-select] el-tree-select
yang1978u opened this issue · comments
yang1978u commented
Bug Type: Other
Environment
- Vue Version:
3.3.9
- Element Plus Version:
2.4.3
- Browser / OS:
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
- Build Tool:
Vite
Reproduction
Related Component
el-tree-select
Reproduction Link
Steps to reproduce
What is Expected?
//ts
const treeData=ref([
{ label: 'Option A', id: 1, children: null },
{ label: 'Option B', id: 2, children: null },
{ label: 'Option C', id: 3, children: [
{ label: 'Option C1', id: 31 },
{ label: 'Option C2', id: 32 },
]},
])
const selectedNode=ref({ label: 'Option C1', id: 31 })
What is actually happening?
//ts
const treeData=ref([
{ label: 'Option A', id: 1, children: null },
{ label: 'Option B', id: 2, children: null },
{ label: 'Option C', id: 3, children: [
{ label: 'Option C1', id: 31 },
{ label: 'Option C2', id: 32 },
]},
])
const selectedNode=ref({ label: 'Option C1', id: 31 })
Additional comments
可以实现