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

This commit is contained in:
啝裳 2021-05-06 21:11:12 +08:00 committed by GitHub
parent 1ff13bf459
commit 2f8b2183ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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