mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 The database supports adding view/field/option description https://github.com/siyuan-note/siyuan/issues/11053
This commit is contained in:
parent
d9bcb12c34
commit
9371c68ec9
5 changed files with 108 additions and 9 deletions
|
|
@ -39,6 +39,7 @@ type ViewTableColumn struct {
|
|||
Hidden bool `json:"hidden"` // 是否隐藏
|
||||
Pin bool `json:"pin"` // 是否固定
|
||||
Width string `json:"width"` // 列宽度
|
||||
Desc string `json:"desc,omitempty"` // 列描述
|
||||
Calc *ColumnCalc `json:"calc,omitempty"` // 计算
|
||||
}
|
||||
|
||||
|
|
@ -47,6 +48,7 @@ type Table struct {
|
|||
ID string `json:"id"` // 表格布局 ID
|
||||
Icon string `json:"icon"` // 表格图标
|
||||
Name string `json:"name"` // 表格名称
|
||||
Desc string `json:"desc"` // 表格描述
|
||||
HideAttrViewName bool `json:"hideAttrViewName"` // 是否隐藏属性视图名称
|
||||
Filters []*ViewFilter `json:"filters"` // 过滤规则
|
||||
Sorts []*ViewSort `json:"sorts"` // 排序规则
|
||||
|
|
@ -65,6 +67,7 @@ type TableColumn struct {
|
|||
Hidden bool `json:"hidden"` // 是否隐藏
|
||||
Pin bool `json:"pin"` // 是否固定
|
||||
Width string `json:"width"` // 列宽度
|
||||
Desc string `json:"desc"` // 列描述
|
||||
Calc *ColumnCalc `json:"calc"` // 计算
|
||||
|
||||
// 以下是某些列类型的特有属性
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue