Skip to content

Commit 28aeea6

Browse files
committed
fix: tree-select loop error
1 parent 8c94b78 commit 28aeea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/tree-select/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ const TreeSelect = defineComponent({
9393
let newLabel = typeof label === 'function' ? label() : label;
9494
let newTitle = typeof title === 'function' ? title() : title;
9595
if (!newLabel && slots.label && $slots[slots.label]) {
96-
newLabel = $slots.label(item);
96+
newLabel = <>{$slots.label(item)}</>;
9797
}
9898
if (!newTitle && slots.title && $slots[slots.title]) {
99-
newTitle = $slots.title(item);
99+
newTitle = <>{$slots.title(item)}</>;
100100
}
101101
const treeNodeProps = {
102102
...item,

0 commit comments

Comments
 (0)