File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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 => {
4444 console .log (value ); // { key: "lucy", label: "Lucy (101)" }
4545};
4646
47- const value = ref (' lucy' );
47+ const value = ref ({ value: ' lucy' , label: ' Lucy (101) ' } );
4848 </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`.
3737 :dropdown-match-select-width =" false"
3838 tree-node-filter-prop =" label"
3939 >
40- <template #title =" { value: val , title } " >
40+ <template #title =" { value: val , label } " >
4141 <b v-if =" val === 'parent 1-1'" style =" color : #08c " >sss</b >
42- <template v-else >{{ title }}</template >
42+ <template v-else >{{ label }}</template >
4343 </template >
4444 </a-tree-select >
4545</template >
You can’t perform that action at this time.
0 commit comments