🎨 Database date field supports filling the current time by default Fix https://github.com/siyuan-note/siyuan/issues/10823

This commit is contained in:
Daniel 2024-04-05 21:46:41 +08:00
parent 573f04c1ee
commit 5e94afe346
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 5 additions and 2 deletions

View file

@ -106,10 +106,11 @@ type TableColumn struct {
// 以下是某些列类型的特有属性
Options []*SelectOption `json:"options,omitempty"` // 选项列表
NumberFormat NumberFormat `json:"numberFormat"` // 数字格式化
Template string `json:"template"` // 模板内容
NumberFormat NumberFormat `json:"numberFormat"` // 数字格式化
Template string `json:"template"` // 模板内容
Relation *Relation `json:"relation,omitempty"` // 关联列
Rollup *Rollup `json:"rollup,omitempty"` // 汇总列
Date *Date `json:"date,omitempty"` // 日期设置
}
type TableCell struct {

View file

@ -875,6 +875,7 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
Template: key.Template,
Relation: key.Relation,
Rollup: key.Rollup,
Date: key.Date,
Wrap: col.Wrap,
Hidden: col.Hidden,
Width: col.Width,

View file

@ -655,6 +655,7 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
Template: key.Template,
Relation: key.Relation,
Rollup: key.Rollup,
Date: key.Date,
Wrap: col.Wrap,
Hidden: col.Hidden,
Width: col.Width,