mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
9c1d6a1a70
commit
1d0d1ad0c0
3 changed files with 4 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ import (
|
|||
|
||||
// AttributeView 描述了属性视图的结构。
|
||||
type AttributeView struct {
|
||||
Spec int `json:"spec"`
|
||||
ID string `json:"id"` // 属性视图 ID
|
||||
Columns []interface{} `json:"columns"` // 表格列名
|
||||
Rows []*Row `json:"rows"` // 表格行记录
|
||||
|
|
@ -50,6 +51,7 @@ const (
|
|||
|
||||
func NewAttributeView(id string) *AttributeView {
|
||||
return &AttributeView{
|
||||
Spec: 0,
|
||||
ID: id,
|
||||
Columns: []interface{}{NewColumnBlock()},
|
||||
Rows: []*Row{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue