We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c94b78 commit 28aeea6Copy full SHA for 28aeea6
components/tree-select/index.tsx
@@ -93,10 +93,10 @@ const TreeSelect = defineComponent({
93
let newLabel = typeof label === 'function' ? label() : label;
94
let newTitle = typeof title === 'function' ? title() : title;
95
if (!newLabel && slots.label && $slots[slots.label]) {
96
- newLabel = $slots.label(item);
+ newLabel = <>{$slots.label(item)}</>;
97
}
98
if (!newTitle && slots.title && $slots[slots.title]) {
99
- newTitle = $slots.title(item);
+ newTitle = <>{$slots.title(item)}</>;
100
101
const treeNodeProps = {
102
...item,
0 commit comments