mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve list item, super block and blockquote backlink propagation https://github.com/siyuan-note/siyuan/issues/13776
This commit is contained in:
parent
c3579b20dd
commit
042b5e77ea
2 changed files with 2 additions and 4 deletions
|
|
@ -91,9 +91,7 @@ func GetDocInfo(blockID string) (ret *BlockInfo) {
|
|||
}
|
||||
|
||||
ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, Conf.Editor.BacklinkContainChildren)
|
||||
originalRefBlockIDs := map[string]string{}
|
||||
// TODO
|
||||
buildBacklinkListItemRefs(&ret.RefIDs, &originalRefBlockIDs)
|
||||
buildBacklinkListItemRefs(&ret.RefIDs, &map[string]string{})
|
||||
ret.RefCount = len(ret.RefIDs) // 填充块引计数
|
||||
|
||||
// 填充属性视图角标 Display the database title on the block superscript https://github.com/siyuan-note/siyuan/issues/10545
|
||||
|
|
|
|||
|
|
@ -604,7 +604,7 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
|
|||
if isBacklink {
|
||||
// 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853
|
||||
originalRefBlockIDs := map[string]string{}
|
||||
// TODO
|
||||
// TODO 需要增加参数,使用 getRefIDs 返回的 originalRefBlockIDs 增加这个参数后才能支持计数浮窗内计算折叠状态 https://github.com/siyuan-note/siyuan/issues/13776
|
||||
nodes, isBacklinkExpand = getBacklinkRenderNodes(node, originalRefBlockIDs)
|
||||
} else {
|
||||
// 如果同时存在 startID 和 endID,并且是动态加载的情况,则只加载 startID 和 endID 之间的块 [startID, endID]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue