mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01:00
🎨 Add Include time switch to database creation time field and update time field https://github.com/siyuan-note/siyuan/issues/12091
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
1f66e778f4
commit
89b51e0d87
4 changed files with 8 additions and 0 deletions
|
|
@ -159,6 +159,8 @@ type BaseInstanceField struct {
|
|||
Relation *Relation `json:"relation,omitempty"` // 关联字段
|
||||
Rollup *Rollup `json:"rollup,omitempty"` // 汇总字段
|
||||
Date *Date `json:"date,omitempty"` // 日期设置
|
||||
Created *Created `json:"created,omitempty"` // 创建时间设置
|
||||
Updated *Updated `json:"updated,omitempty"` // 更新时间设置
|
||||
}
|
||||
|
||||
func (baseInstanceField *BaseInstanceField) GetID() string {
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
|
|||
Relation: key.Relation,
|
||||
Rollup: key.Rollup,
|
||||
Date: key.Date,
|
||||
Created: key.Created,
|
||||
Updated: key.Updated,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ func RenderAttributeViewKanban(attrView *av.AttributeView, view *av.View, query
|
|||
Relation: key.Relation,
|
||||
Rollup: key.Rollup,
|
||||
Date: key.Date,
|
||||
Created: key.Created,
|
||||
Updated: key.Updated,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
|
|||
Relation: key.Relation,
|
||||
Rollup: key.Rollup,
|
||||
Date: key.Date,
|
||||
Created: key.Created,
|
||||
Updated: key.Updated,
|
||||
},
|
||||
Width: col.Width,
|
||||
Pin: col.Pin,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue