This commit is contained in:
Liang Ding 2023-03-03 10:28:33 +08:00
parent 9c1d6a1a70
commit 1d0d1ad0c0
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 4 additions and 1 deletions

View file

@ -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{},

View file

@ -17,7 +17,7 @@
package av
type Cell struct {
Value string
Value string `json:"value"`
}
type CellBlock struct {

View file

@ -19,6 +19,7 @@ package model
import (
"errors"
"fmt"
"github.com/88250/lute/parse"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/av"