mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
🎨 Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751
This commit is contained in:
parent
5f04af1afe
commit
3f5e49cec6
5 changed files with 89 additions and 0 deletions
|
|
@ -546,6 +546,7 @@ type ValueCheckbox struct {
|
|||
// View 描述了视图的结构。
|
||||
type View struct {
|
||||
ID string `json:"id"` // 视图 ID
|
||||
Icon string `json:"icon"` // 视图图标
|
||||
Name string `json:"name"` // 视图名称
|
||||
|
||||
LayoutType LayoutType `json:"type"` // 当前布局类型
|
||||
|
|
|
|||
|
|
@ -572,6 +572,7 @@ func (value *Value) CompareOperator(other *Value, operator FilterOperator) bool
|
|||
// Table 描述了表格实例的结构。
|
||||
type Table struct {
|
||||
ID string `json:"id"` // 表格布局 ID
|
||||
Icon string `json:icon` // 表格图标
|
||||
Name string `json:"name"` // 表格名称
|
||||
Filters []*ViewFilter `json:"filters"` // 过滤规则
|
||||
Sorts []*ViewSort `json:"sorts"` // 排序规则
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue