Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958

Daniel44f99c8fb63c
diff --git a/kernel/treenode/node.go b/kernel/treenode/node.go
index bbf7924551..ee906e6f27 100644
--- a/kernel/treenode/node.go
+++ b/kernel/treenode/node.go
@@ -757,8 +757,11 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
destVal.Number.Format = rollupKey.NumberFormat
destVal.Number.FormatNumber()
}
+
cell.Value.Rollup.Contents = append(cell.Value.Rollup.Contents, destVal.String())
}
+
+ cell.Value.Rollup.RenderContents(rollupKey.Rollup.Calc)
case av.KeyTypeRelation: // 渲染关联列
relKey, _ := attrView.GetKey(cell.Value.KeyID)
if nil != relKey && nil != relKey.Relation {