mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 14:28: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{},
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
package av
|
||||
|
||||
type Cell struct {
|
||||
Value string
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
type CellBlock struct {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue