Browse Source

fix: tree-select loop error

pull/3271/head
tanjinzhou 4 years ago
parent
commit
28aeea6f0b
  1. 4
      components/tree-select/index.tsx

4
components/tree-select/index.tsx

@ -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,

Loading…
Cancel
Save