mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 反链面板支持文档排序 https://github.com/siyuan-note/insider/issues/1086
This commit is contained in:
parent
7388c0d2a7
commit
e34e7fe217
4 changed files with 64 additions and 3 deletions
|
|
@ -112,6 +112,9 @@ func toFlatTree(blocks []*Block, baseDepth int, typ string) (ret []*Path) {
|
|||
SubType: root.SubType,
|
||||
Depth: baseDepth,
|
||||
Count: len(root.Children),
|
||||
|
||||
Updated: root.IAL["updated"],
|
||||
Created: root.ID[:14],
|
||||
}
|
||||
for _, c := range root.Children {
|
||||
treeNode.Blocks = append(treeNode.Blocks, c)
|
||||
|
|
@ -125,7 +128,6 @@ func toFlatTree(blocks []*Block, baseDepth int, typ string) (ret []*Path) {
|
|||
return
|
||||
}
|
||||
|
||||
|
||||
func toSubTree(blocks []*Block, keyword string) (ret []*Path) {
|
||||
keyword = strings.TrimSpace(keyword)
|
||||
var blockRoots []*Block
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue