Fix:修复开启了实时渲染效果后删除一个节点的所有节点后会显示展开收起按钮并且不会消失的问题
This commit is contained in:
parent
1bdbe0881e
commit
063742cb9b
@ -181,7 +181,11 @@ function layout() {
|
|||||||
addCustomContentToNode
|
addCustomContentToNode
|
||||||
} = this.mindMap.opt
|
} = this.mindMap.opt
|
||||||
// 避免编辑过程中展开收起按钮闪烁的问题
|
// 避免编辑过程中展开收起按钮闪烁的问题
|
||||||
if (openRealtimeRenderOnNodeTextEdit && this._expandBtn) {
|
if (
|
||||||
|
openRealtimeRenderOnNodeTextEdit &&
|
||||||
|
this._expandBtn &&
|
||||||
|
this.getChildrenLength() > 0
|
||||||
|
) {
|
||||||
this.group.add(this._expandBtn)
|
this.group.add(this._expandBtn)
|
||||||
}
|
}
|
||||||
const { width, height } = this
|
const { width, height } = this
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user