File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,5 +44,5 @@ const handleChange: SelectProps['onChange'] = value => {
44
44
console .log (value ); // { key: "lucy", label: "Lucy (101)" }
45
45
};
46
46
47
- const value = ref (' lucy' );
47
+ const value = ref ({ value: ' lucy' , label: ' Lucy (101) ' } );
48
48
</script >
Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ You can manually specify the position of the popup via `placement`.
37
37
:dropdown-match-select-width =" false"
38
38
tree-node-filter-prop =" label"
39
39
>
40
- <template #title =" { value: val , title } " >
40
+ <template #title =" { value: val , label } " >
41
41
<b v-if =" val === 'parent 1-1'" style =" color : #08c " >sss</b >
42
- <template v-else >{{ title }}</template >
42
+ <template v-else >{{ label }}</template >
43
43
</template >
44
44
</a-tree-select >
45
45
</template >
You can’t perform that action at this time.
0 commit comments