Commit 2f8b2183ec25f7c2a11bb5dc0a0a2578d7568ec3
Committed by
GitHub
1 parent
1ff13bf4
fix(tree): basicTree设置blockNode=false后,显示异常 (#567)
Showing
1 changed file
with
5 additions
and
1 deletions
src/components/Tree/src/index.vue
... | ... | @@ -309,7 +309,11 @@ |
309 | 309 | ) : ( |
310 | 310 | <> |
311 | 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 | 317 | <span class={`${prefixCls}__actions`}> |
314 | 318 | {renderAction({ ...item, level })} |
315 | 319 | </span> | ... | ... |