mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-07 11:00:09 +08:00
🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958
This commit is contained in:
parent
7c799a92bf
commit
31442f45d6
@ -1995,6 +1995,10 @@ func addAttributeViewColumn(operation *Operation) (err error) {
|
|||||||
icon = operation.Data.(string)
|
icon = operation.Data.(string)
|
||||||
}
|
}
|
||||||
key := av.NewKey(operation.ID, operation.Name, icon, keyType)
|
key := av.NewKey(operation.ID, operation.Name, icon, keyType)
|
||||||
|
if av.KeyTypeRollup == keyType {
|
||||||
|
key.Rollup = &av.Rollup{Calc: &av.RollupCalc{Operator: av.CalcOperatorNone}}
|
||||||
|
}
|
||||||
|
|
||||||
attrView.KeyValues = append(attrView.KeyValues, &av.KeyValues{Key: key})
|
attrView.KeyValues = append(attrView.KeyValues, &av.KeyValues{Key: key})
|
||||||
|
|
||||||
for _, view := range attrView.Views {
|
for _, view := range attrView.Views {
|
||||||
|
Loading…
Reference in New Issue
Block a user