mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
49354816e3
commit
4c55a240f3
5 changed files with 101 additions and 31 deletions
|
|
@ -18,6 +18,8 @@ package av
|
|||
|
||||
import (
|
||||
"sort"
|
||||
|
||||
"github.com/88250/lute/ast"
|
||||
)
|
||||
|
||||
// LayoutTable 描述了表格布局的结构。
|
||||
|
|
@ -28,6 +30,18 @@ type LayoutTable struct {
|
|||
RowIDs []string `json:"rowIds"` // 行 ID,用于自定义排序
|
||||
}
|
||||
|
||||
func NewLayoutTable() *LayoutTable {
|
||||
return &LayoutTable{
|
||||
BaseLayout: &BaseLayout{
|
||||
Spec: 0,
|
||||
ID: ast.NewNodeID(),
|
||||
Filters: []*ViewFilter{},
|
||||
Sorts: []*ViewSort{},
|
||||
PageSize: TableViewDefaultPageSize,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// ViewTableColumn 描述了表格列的结构。
|
||||
type ViewTableColumn struct {
|
||||
ID string `json:"id"` // 列 ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue