resolve: #19 collapse the lowest headings

This commit is contained in:
xiangyu 2022-05-18 11:31:53 +08:00
parent 65c331fdc3
commit addab7b0f3

View File

@ -275,7 +275,8 @@
lineIndex: node.model.lineIndex,
endIndex: node.model.endIndex,
isDirectory: node.children.length > 0,
expanded: true,
expanded:
node.children.filter((n) => n.model.rank < 7).length !== 0,
parentId:
node.model.rank > 1 ? String(node.parent.model.id) : undefined,
});