diff --git a/components/tree-select/demo/basic.vue b/components/tree-select/demo/basic.vue index e1cea999f..9cd8b3eed 100644 --- a/components/tree-select/demo/basic.vue +++ b/components/tree-select/demo/basic.vue @@ -26,10 +26,11 @@ The most basic usage. allow-clear tree-default-expand-all :tree-data="treeData" + tree-node-filter-prop="label" > - @@ -41,25 +42,25 @@ export default defineComponent({ const value = ref(); const treeData = ref([ { - title: 'parent 1', + label: 'parent 1', value: 'parent 1', children: [ { - title: 'parent 1-0', + label: 'parent 1-0', value: 'parent 1-0', children: [ { - title: 'my leaf', + label: 'my leaf', value: 'leaf1', }, { - title: 'your leaf', + label: 'your leaf', value: 'leaf2', }, ], }, { - title: 'parent 1-1', + label: 'parent 1-1', value: 'parent 1-1', }, ], diff --git a/components/tree-select/demo/checkable.vue b/components/tree-select/demo/checkable.vue index 36f435e77..d39a825c8 100644 --- a/components/tree-select/demo/checkable.vue +++ b/components/tree-select/demo/checkable.vue @@ -24,6 +24,7 @@ Multiple and checkable. allow-clear :show-checked-strategy="SHOW_PARENT" placeholder="Please select" + tree-node-filter-prop="label" />