优化目录组织图结构逻辑
This commit is contained in:
parent
bb68575aca
commit
87d55b31ca
@ -126,7 +126,7 @@ class CatalogOrganization extends Base {
|
|||||||
node.children.reduce((h, item) => {
|
node.children.reduce((h, item) => {
|
||||||
return h + item.height + (this.getNodeActChildrenLength(item) > 0 ? item.expandBtnSize : 0)
|
return h + item.height + (this.getNodeActChildrenLength(item) > 0 ? item.expandBtnSize : 0)
|
||||||
}, 0) +
|
}, 0) +
|
||||||
(len + 1) * marginY
|
len * marginY
|
||||||
this.updateBrothersTop(node, totalHeight)
|
this.updateBrothersTop(node, totalHeight)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user