Browse Source

fix(tree): basicTree设置blockNode=false后,显示异常 (#567)

pull/572/head
啝裳 6 years ago
committed by GitHub
parent
commit
2f8b2183ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/components/Tree/src/index.vue

6
src/components/Tree/src/index.vue

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

Loading…
Cancel
Save