Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a3fd390

Browse files
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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /