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

This commit is contained in:
Daniel 2023-12-30 23:13:01 +08:00
parent 9d1d761133
commit 454d3d0b93
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -928,7 +928,7 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
}
}
}
cell.Value.Rollup.Contents = []string{strconv.FormatFloat(min, 'f', -1, 64) + "~" + strconv.FormatFloat(max, 'f', -1, 64)}
cell.Value.Rollup.Contents = []string{strconv.FormatFloat(max-min, 'f', -1, 64)}
}
}
case av.KeyTypeRelation: // 渲染关联列