🎨 Database date field supports filling the current time by default Fix https://github.com/siyuan-note/siyuan/issues/10823
This commit is contained in:
parent
573f04c1ee
commit
5e94afe346
3 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue