mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
🎨 Improve av
This commit is contained in:
parent
a3c5d92f58
commit
66fee469f8
1 changed files with 6 additions and 0 deletions
|
|
@ -217,6 +217,9 @@ func NewTableView() (ret *View) {
|
|||
ret = &View{
|
||||
ID: ast.NewNodeID(),
|
||||
Name: GetAttributeViewI18n("table"),
|
||||
Filters: []*ViewFilter{},
|
||||
Sorts: []*ViewSort{},
|
||||
PageSize: ViewDefaultPageSize,
|
||||
LayoutType: LayoutTypeTable,
|
||||
Table: NewLayoutTable(),
|
||||
}
|
||||
|
|
@ -228,8 +231,11 @@ func NewTableViewWithBlockKey(blockKeyID string) (view *View, blockKey, selectKe
|
|||
view = &View{
|
||||
ID: ast.NewNodeID(),
|
||||
Name: name,
|
||||
Filters: []*ViewFilter{},
|
||||
Sorts: []*ViewSort{},
|
||||
LayoutType: LayoutTypeTable,
|
||||
Table: NewLayoutTable(),
|
||||
PageSize: ViewDefaultPageSize,
|
||||
}
|
||||
blockKey = NewKey(blockKeyID, GetAttributeViewI18n("key"), "", KeyTypeBlock)
|
||||
view.Table.Columns = []*ViewTableColumn{{BaseField: &BaseField{ID: blockKeyID}}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue