Commit 2f8b2183ec25f7c2a11bb5dc0a0a2578d7568ec3

Authored by 啝裳
Committed by GitHub
1 parent 1ff13bf4

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

src/components/Tree/src/index.vue
@@ -309,7 +309,11 @@ @@ -309,7 +309,11 @@
309 ) : ( 309 ) : (
310 <> 310 <>
311 {icon && <TreeIcon icon={icon} />} 311 {icon && <TreeIcon icon={icon} />}
312 - <span class={`${prefixCls}__content`}>{get(item, titleField)}</span> 312 + <span
  313 + class={unref(getBindValues)?.blockNode ? `${prefixCls}__content` : ''}
  314 + >
  315 + {get(item, titleField)}
  316 + </span>
313 <span class={`${prefixCls}__actions`}> 317 <span class={`${prefixCls}__actions`}>
314 {renderAction({ ...item, level })} 318 {renderAction({ ...item, level })}
315 </span> 319 </span>