mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-03-05 08:18:00 +08:00
优化目录组织图结构逻辑
This commit is contained in:
parent
bb68575aca
commit
87d55b31ca
@ -126,7 +126,7 @@ class CatalogOrganization extends Base {
|
||||
node.children.reduce((h, item) => {
|
||||
return h + item.height + (this.getNodeActChildrenLength(item) > 0 ? item.expandBtnSize : 0)
|
||||
}, 0) +
|
||||
(len + 1) * marginY
|
||||
len * marginY
|
||||
this.updateBrothersTop(node, totalHeight)
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user