mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Update av
This commit is contained in:
parent
b0dc75b3c4
commit
4bc4684163
2 changed files with 7 additions and 3 deletions
|
|
@ -35,6 +35,7 @@ import (
|
|||
type AttributeView struct {
|
||||
Spec int `json:"spec"`
|
||||
ID string `json:"id"` // 属性视图 ID
|
||||
Name string `json:"name"` // 属性视图名称
|
||||
Columns []*Column `json:"columns"` // 表格列名
|
||||
Rows []*Row `json:"rows"` // 表格行记录
|
||||
|
||||
|
|
@ -55,6 +56,7 @@ 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue