mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 14:04:47 +08:00
Fix:修复开启了实时渲染效果后删除一个节点的所有节点后会显示展开收起按钮并且不会消失的问题
This commit is contained in:
@@ -181,7 +181,11 @@ function layout() {
|
||||
addCustomContentToNode
|
||||
} = this.mindMap.opt
|
||||
// 避免编辑过程中展开收起按钮闪烁的问题
|
||||
if (openRealtimeRenderOnNodeTextEdit && this._expandBtn) {
|
||||
if (
|
||||
openRealtimeRenderOnNodeTextEdit &&
|
||||
this._expandBtn &&
|
||||
this.getChildrenLength() > 0
|
||||
) {
|
||||
this.group.add(this._expandBtn)
|
||||
}
|
||||
const { width, height } = this
|
||||
|
||||
Reference in New Issue
Block a user