mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 20:25:17 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
f575036b6e
commit
fa5d560a3b
4 changed files with 2 additions and 3 deletions
|
|
@ -50,7 +50,6 @@ type BaseInstanceField struct {
|
|||
Name string `json:"name"` // 字段名
|
||||
Type KeyType `json:"type"` // 字段类型
|
||||
Icon string `json:"icon"` // 字段图标
|
||||
Wrap bool `json:"wrap"` // 是否换行
|
||||
Hidden bool `json:"hidden"` // 是否隐藏
|
||||
Desc string `json:"desc"` // 字段描述
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ const (
|
|||
type ViewGalleryCardField struct {
|
||||
ID string `json:"id"` // 字段 ID
|
||||
|
||||
Wrap bool `json:"wrap"` // 是否换行
|
||||
Hidden bool `json:"hidden"` // 是否隐藏
|
||||
Desc string `json:"desc,omitempty"` // 字段描述
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ type Table struct {
|
|||
type TableColumn struct {
|
||||
*BaseInstanceField
|
||||
|
||||
Wrap bool `json:"wrap"` // 是否换行
|
||||
Pin bool `json:"pin"` // 是否固定
|
||||
Width string `json:"width"` // 列宽度
|
||||
Calc *ColumnCalc `json:"calc"` // 计算
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
|
|||
Name: key.Name,
|
||||
Type: key.Type,
|
||||
Icon: key.Icon,
|
||||
Wrap: col.Wrap,
|
||||
Hidden: col.Hidden,
|
||||
Desc: key.Desc,
|
||||
Options: key.Options,
|
||||
|
|
@ -65,6 +64,7 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
|
|||
Rollup: key.Rollup,
|
||||
Date: key.Date,
|
||||
},
|
||||
Wrap: col.Wrap,
|
||||
Width: col.Width,
|
||||
Pin: col.Pin,
|
||||
Calc: col.Calc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue