Browse Source

fix(tree): node slot take no effect

修复BasicTree节点插槽不起作用的问题
pull/1211/head
无木 5 years ago
parent
commit
15ea0d2f53
  1. 1
      CHANGELOG.zh_CN.md
  2. 4
      src/components/Tree/src/Tree.vue

1
CHANGELOG.zh_CN.md

@ -4,6 +4,7 @@
- **BasicModal**
- 修复点击遮罩、按下`Esc`键都不能关闭`Modal`的问题
- 修复点击关闭按钮、最大化按钮旁边的空白区域也会导致`Modal`关闭的问题
- **BasicTree** 修复节点插槽不起作用的问题
## 2.7.2(2021-09-14)

4
src/components/Tree/src/Tree.vue

@ -422,8 +422,8 @@
class={`${prefixCls}-title pl-2`}
onClick={handleClickNode.bind(null, item[keyField], item[childrenField])}
>
{slots?.title ? (
getSlot(slots, 'title', item)
{item.slots?.title ? (
getSlot(slots, item.slots?.title, item)
) : (
<>
{icon && <TreeIcon icon={icon} />}

Loading…
Cancel
Save