mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958
This commit is contained in:
parent
59599472ba
commit
44f99c8fb6
1 changed files with 3 additions and 0 deletions
|
|
@ -757,8 +757,11 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
|
||||||
destVal.Number.Format = rollupKey.NumberFormat
|
destVal.Number.Format = rollupKey.NumberFormat
|
||||||
destVal.Number.FormatNumber()
|
destVal.Number.FormatNumber()
|
||||||
}
|
}
|
||||||
|
|
||||||
cell.Value.Rollup.Contents = append(cell.Value.Rollup.Contents, destVal.String())
|
cell.Value.Rollup.Contents = append(cell.Value.Rollup.Contents, destVal.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cell.Value.Rollup.RenderContents(rollupKey.Rollup.Calc)
|
||||||
case av.KeyTypeRelation: // 渲染关联列
|
case av.KeyTypeRelation: // 渲染关联列
|
||||||
relKey, _ := attrView.GetKey(cell.Value.KeyID)
|
relKey, _ := attrView.GetKey(cell.Value.KeyID)
|
||||||
if nil != relKey && nil != relKey.Relation {
|
if nil != relKey && nil != relKey.Relation {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue