This commit is contained in:
Daniel 2025-06-10 12:23:07 +08:00
parent 49354816e3
commit 4c55a240f3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 101 additions and 31 deletions

View file

@ -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