From e561e804be06abda7415aec0a3a30e7cc71b3a40 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Wed, 12 Apr 2023 22:28:35 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=E4=BF=AE=E5=A4=8D=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E5=9B=BE,=E7=9B=AE=E5=BD=95=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E5=9B=BE=E7=AD=89=E8=8A=82=E7=82=B9=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E6=97=B6=E5=AD=98=E5=9C=A8=E7=BA=BF=E6=AE=B5=E6=9C=AA=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/Node.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simple-mind-map/src/Node.js b/simple-mind-map/src/Node.js index 8f1b8267..89f3a9de 100644 --- a/simple-mind-map/src/Node.js +++ b/simple-mind-map/src/Node.js @@ -557,6 +557,9 @@ class Node { if (this.parent) { let index = this.parent.children.indexOf(this) this.parent._lines[index].hide() + this._lines.forEach((item) => { + item.hide() + }) } // 子节点 if (this.children && this.children.length) { @@ -580,6 +583,9 @@ class Node { if (this.parent) { let index = this.parent.children.indexOf(this) this.parent._lines[index] && this.parent._lines[index].show() + this._lines.forEach((item) => { + item.show() + }) } // 子节点 if (this.children && this.children.length) {