docs: update demo

feat-4.1
tangjinzhou 2023-12-18 16:17:43 +08:00
parent a9198e44df
commit a3fd390619
2 changed files with 3 additions and 3 deletions

View File

@ -44,5 +44,5 @@ const handleChange: SelectProps['onChange'] = value => {
console.log(value); // { key: "lucy", label: "Lucy (101)" }
};
const value = ref('lucy');
const value = ref({ value: 'lucy', label: 'Lucy (101)' });
</script>

View File

@ -37,9 +37,9 @@ You can manually specify the position of the popup via `placement`.
:dropdown-match-select-width="false"
tree-node-filter-prop="label"
>
<template #title="{ value: val, title }">
<template #title="{ value: val, label }">
<b v-if="val === 'parent 1-1'" style="color: #08c">sss</b>
<template v-else>{{ title }}</template>
<template v-else>{{ label }}</template>
</template>
</a-tree-select>
</template>