Skip to content

Commit

Permalink
docs: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Dec 18, 2023
1 parent a9198e4 commit a3fd390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/select/demo/label-in-value.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
4 changes: 2 additions & 2 deletions components/tree-select/demo/placement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a3fd390

Please sign in to comment.