mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/15089 https://github.com/siyuan-note/siyuan/issues/15181
This commit is contained in:
parent
60d44fec3d
commit
3c21d39e52
6 changed files with 52 additions and 23 deletions
|
|
@ -23,6 +23,9 @@ type BaseLayout struct {
|
|||
Spec int `json:"spec"` // 布局格式版本
|
||||
ID string `json:"id"` // 布局 ID
|
||||
|
||||
ShowIcon bool `json:"showIcon"` // 是否显示字段图标
|
||||
WrapField bool `json:"wrapField"` // 是否换行字段内容
|
||||
|
||||
// TODO 以下三个字段已经废弃,计划于 2026 年 6 月 30 日后删除 https://github.com/siyuan-note/siyuan/issues/15162
|
||||
|
||||
//Deprecated
|
||||
|
|
@ -51,6 +54,8 @@ type BaseInstance struct {
|
|||
Sorts []*ViewSort `json:"sorts"` // 排序规则
|
||||
Group *ViewGroup `json:"group"` // 分组规则
|
||||
PageSize int `json:"pageSize"` // 每页项目数
|
||||
ShowIcon bool `json:"showIcon"` // 是否显示字段图标
|
||||
WrapField bool `json:"wrapField"` // 是否换行字段内容
|
||||
}
|
||||
|
||||
func (baseInstance *BaseInstance) GetSorts() []*ViewSort {
|
||||
|
|
@ -64,11 +69,12 @@ func (baseInstance *BaseInstance) GetFilters() []*ViewFilter {
|
|||
// BaseInstanceField 描述了实例字段的基础结构。
|
||||
type BaseInstanceField struct {
|
||||
ID string `json:"id"` // ID
|
||||
Name string `json:"name"` // 字段名
|
||||
Type KeyType `json:"type"` // 字段类型
|
||||
Icon string `json:"icon"` // 字段图标
|
||||
Name string `json:"name"` // 名称
|
||||
Type KeyType `json:"type"` // 类型
|
||||
Icon string `json:"icon"` // 图标
|
||||
Wrap bool `json:"wrap"` // 是否换行
|
||||
Hidden bool `json:"hidden"` // 是否隐藏
|
||||
Desc string `json:"desc"` // 字段描述
|
||||
Desc string `json:"desc"` // 描述
|
||||
|
||||
// 以下是某些字段类型的特有属性
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue