mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 09:30:48 +08:00
🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958
This commit is contained in:
parent
641db503f0
commit
0a5f0cd9e9
@ -786,7 +786,11 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, blockID := range relVal.Relation.BlockIDs {
|
for _, blockID := range relVal.Relation.BlockIDs {
|
||||||
cell.Value.Rollup.Contents = append(cell.Value.Rollup.Contents, destAv.GetValue(rollupKey.Rollup.KeyID, blockID).String())
|
destVal := destAv.GetValue(rollupKey.Rollup.KeyID, blockID)
|
||||||
|
if nil == destVal {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
cell.Value.Rollup.Contents = append(cell.Value.Rollup.Contents, destVal.String())
|
||||||
}
|
}
|
||||||
case av.KeyTypeRelation: // 渲染关联列
|
case av.KeyTypeRelation: // 渲染关联列
|
||||||
relKey, _ := attrView.GetKey(cell.Value.KeyID)
|
relKey, _ := attrView.GetKey(cell.Value.KeyID)
|
||||||
|
Loading…
Reference in New Issue
Block a user