Daniel 2025-06-29 11:22:02 +08:00
parent ff4344ba40
commit 6cffe637dd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 8 additions and 4 deletions

View file

@ -409,7 +409,7 @@ func SaveAttributeView(av *AttributeView) (err error) {
// 分页大小 // 分页大小
if 1 > view.PageSize { if 1 > view.PageSize {
view.Table.PageSize = ViewDefaultPageSize view.PageSize = ViewDefaultPageSize
} }
} }

View file

@ -24,9 +24,13 @@ type BaseLayout struct {
ID string `json:"id"` // 布局 ID ID string `json:"id"` // 布局 ID
// 以下三个字段已经废弃,计划于 2026 年 6 月 30 日后删除 https://github.com/siyuan-note/siyuan/issues/15162 // 以下三个字段已经废弃,计划于 2026 年 6 月 30 日后删除 https://github.com/siyuan-note/siyuan/issues/15162
Filters []*ViewFilter `json:"filters,omitempty"` // 过滤规则
Sorts []*ViewSort `json:"sorts,omitempty"` // 排序规则 //Deprecated
PageSize int `json:"pageSize,omitempty"` // 每页条目数 Filters []*ViewFilter `json:"filters,omitempty"` //Deprecated 过滤规则
//Deprecated
Sorts []*ViewSort `json:"sorts,omitempty"` //Deprecated 排序规则
//Deprecated
PageSize int `json:"pageSize,omitempty"` //Deprecated 每页条目数
} }
// BaseValue 描述了字段值的基础结构。 // BaseValue 描述了字段值的基础结构。