Skip to content

Commit a3fd390

Browse files
committed
docs: update demo
1 parent a9198e4 commit a3fd390

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/select/demo/label-in-value.vue

+1-1
Original file line numberDiff line numberDiff 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>

components/tree-select/demo/placement.vue

+2-2
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)