Fix:修复组织结构图,目录组织图等节点拖拽时存在线段未隐藏的bug

This commit is contained in:
wanglin2
2023-04-12 22:28:35 +08:00
parent 5a8c3aa9d3
commit e561e804be

View File

@@ -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) {