diff --git a/simple-mind-map/src/core/render/node/nodeLayout.js b/simple-mind-map/src/core/render/node/nodeLayout.js index 7844c0e3..016d821e 100644 --- a/simple-mind-map/src/core/render/node/nodeLayout.js +++ b/simple-mind-map/src/core/render/node/nodeLayout.js @@ -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