Browse Source

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

Daniel 1 year ago
parent
commit
44f99c8fb6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      kernel/treenode/node.go

+ 3 - 0
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 {