From 063742cb9ba074411f7c8eb00f3098cd07b006b3 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Fri, 14 Feb 2025 22:15:00 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=E4=BF=AE=E5=A4=8D=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E4=BA=86=E5=AE=9E=E6=97=B6=E6=B8=B2=E6=9F=93=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=90=8E=E5=88=A0=E9=99=A4=E4=B8=80=E4=B8=AA=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E7=9A=84=E6=89=80=E6=9C=89=E8=8A=82=E7=82=B9=E5=90=8E=E4=BC=9A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B1=95=E5=BC=80=E6=94=B6=E8=B5=B7=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=B9=B6=E4=B8=94=E4=B8=8D=E4=BC=9A=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/core/render/node/nodeLayout.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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