Skip to content

Commit

Permalink
fix(tree): basicTree设置blockNode=false后,显示异常 (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed May 6, 2021
1 parent 1ff13bf commit 2f8b218
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Tree/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,11 @@
) : (
<>
{icon && <TreeIcon icon={icon} />}
<span class={`${prefixCls}__content`}>{get(item, titleField)}</span>
<span
class={unref(getBindValues)?.blockNode ? `${prefixCls}__content` : ''}
>
{get(item, titleField)}
</span>
<span class={`${prefixCls}__actions`}>
{renderAction({ ...item, level })}
</span>
Expand Down

0 comments on commit 2f8b218

Please sign in to comment.