mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958
This commit is contained in:
parent
521b9afefd
commit
755e9e0af3
2 changed files with 10 additions and 1 deletions
|
|
@ -753,6 +753,10 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
|
|||
if nil == destVal {
|
||||
continue
|
||||
}
|
||||
if av.KeyTypeNumber == destVal.Type {
|
||||
destVal.Number.Format = rollupKey.NumberFormat
|
||||
destVal.Number.FormatNumber()
|
||||
}
|
||||
cell.Value.Rollup.Contents = append(cell.Value.Rollup.Contents, destVal.String())
|
||||
}
|
||||
case av.KeyTypeRelation: // 渲染关联列
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue