mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🎨 Update av
This commit is contained in:
parent
f91d6cbce9
commit
c1c5b29f79
1 changed files with 11 additions and 13 deletions
|
|
@ -39,10 +39,9 @@ type AttributeView struct {
|
|||
Columns []*Column `json:"columns"` // 表格列名
|
||||
Rows []*Row `json:"rows"` // 表格行记录
|
||||
|
||||
Type AttributeViewType `json:"type"` // 属性视图类型
|
||||
Projections []string `json:"projections"` // 显示的列名
|
||||
Filters []*AttributeViewFilter `json:"filters"` // 过滤规则
|
||||
Sorts []*AttributeViewSort `json:"sorts"` // 排序规则
|
||||
Type AttributeViewType `json:"type"` // 属性视图类型
|
||||
Filters []*AttributeViewFilter `json:"filters"` // 过滤规则
|
||||
Sorts []*AttributeViewSort `json:"sorts"` // 排序规则
|
||||
}
|
||||
|
||||
// AttributeViewType 描述了属性视图的类型。
|
||||
|
|
@ -54,15 +53,14 @@ const (
|
|||
|
||||
func NewAttributeView(id string) *AttributeView {
|
||||
return &AttributeView{
|
||||
Spec: 0,
|
||||
ID: id,
|
||||
Name: "Table",
|
||||
Columns: []*Column{{ID: ast.NewNodeID(), Name: "Block", Type: ColumnTypeBlock}},
|
||||
Rows: []*Row{},
|
||||
Type: AttributeViewTypeTable,
|
||||
Projections: []string{},
|
||||
Filters: []*AttributeViewFilter{},
|
||||
Sorts: []*AttributeViewSort{},
|
||||
Spec: 0,
|
||||
ID: id,
|
||||
Name: "Table",
|
||||
Columns: []*Column{{ID: ast.NewNodeID(), Name: "Block", Type: ColumnTypeBlock}},
|
||||
Rows: []*Row{},
|
||||
Type: AttributeViewTypeTable,
|
||||
Filters: []*AttributeViewFilter{},
|
||||
Sorts: []*AttributeViewSort{},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue