Skip to content

Commit

Permalink
fix: tree-select loop error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Nov 27, 2020
1 parent 8c94b78 commit 28aeea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tree-select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ const TreeSelect = defineComponent({
let newLabel = typeof label === 'function' ? label() : label;
let newTitle = typeof title === 'function' ? title() : title;
if (!newLabel && slots.label && $slots[slots.label]) {
newLabel = $slots.label(item);
newLabel = <>{$slots.label(item)}</>;
}
if (!newTitle && slots.title && $slots[slots.title]) {
newTitle = $slots.title(item);
newTitle = <>{$slots.title(item)}</>;
}
const treeNodeProps = {
...item,
Expand Down

0 comments on commit 28aeea6

Please sign in to comment.