docs: update demo
parent
a9198e44df
commit
a3fd390619
|
@ -44,5 +44,5 @@ const handleChange: SelectProps['onChange'] = value => {
|
||||||
console.log(value); // { key: "lucy", label: "Lucy (101)" }
|
console.log(value); // { key: "lucy", label: "Lucy (101)" }
|
||||||
};
|
};
|
||||||
|
|
||||||
const value = ref('lucy');
|
const value = ref({ value: 'lucy', label: 'Lucy (101)' });
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -37,9 +37,9 @@ You can manually specify the position of the popup via `placement`.
|
||||||
:dropdown-match-select-width="false"
|
:dropdown-match-select-width="false"
|
||||||
tree-node-filter-prop="label"
|
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>
|
<b v-if="val === 'parent 1-1'" style="color: #08c">sss</b>
|
||||||
<template v-else>{{ title }}</template>
|
<template v-else>{{ label }}</template>
|
||||||
</template>
|
</template>
|
||||||
</a-tree-select>
|
</a-tree-select>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue