Fix:修复组织结构图,目录组织图等节点拖拽时存在线段未隐藏的bug
This commit is contained in:
parent
5a8c3aa9d3
commit
e561e804be
@ -557,6 +557,9 @@ class Node {
|
|||||||
if (this.parent) {
|
if (this.parent) {
|
||||||
let index = this.parent.children.indexOf(this)
|
let index = this.parent.children.indexOf(this)
|
||||||
this.parent._lines[index].hide()
|
this.parent._lines[index].hide()
|
||||||
|
this._lines.forEach((item) => {
|
||||||
|
item.hide()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// 子节点
|
// 子节点
|
||||||
if (this.children && this.children.length) {
|
if (this.children && this.children.length) {
|
||||||
@ -580,6 +583,9 @@ class Node {
|
|||||||
if (this.parent) {
|
if (this.parent) {
|
||||||
let index = this.parent.children.indexOf(this)
|
let index = this.parent.children.indexOf(this)
|
||||||
this.parent._lines[index] && this.parent._lines[index].show()
|
this.parent._lines[index] && this.parent._lines[index].show()
|
||||||
|
this._lines.forEach((item) => {
|
||||||
|
item.show()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// 子节点
|
// 子节点
|
||||||
if (this.children && this.children.length) {
|
if (this.children && this.children.length) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user