mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 Update av export
This commit is contained in:
parent
3cd6e0d953
commit
376384d4e3
5 changed files with 58 additions and 32 deletions
|
|
@ -40,7 +40,6 @@ import (
|
|||
type AttributeView struct {
|
||||
Spec int `json:"spec"` // 格式版本
|
||||
ID string `json:"id"` // 属性视图 ID
|
||||
NodeID string `json:"nodeID"` // 属性视图所在节点 ID
|
||||
Name string `json:"name"` // 属性视图名称
|
||||
KeyValues []*KeyValues `json:"keyValues"` // 属性视图属性列值
|
||||
ViewID string `json:"viewID"` // 当前视图 ID
|
||||
|
|
@ -386,7 +385,7 @@ type Viewable interface {
|
|||
GetID() string
|
||||
}
|
||||
|
||||
func NewAttributeView(id, nodeID string) (ret *AttributeView) {
|
||||
func NewAttributeView(id string) (ret *AttributeView) {
|
||||
view := NewView()
|
||||
key := NewKey(ast.NewNodeID(), "Block", KeyTypeBlock)
|
||||
ret = &AttributeView{
|
||||
|
|
@ -395,7 +394,6 @@ func NewAttributeView(id, nodeID string) (ret *AttributeView) {
|
|||
KeyValues: []*KeyValues{{Key: key}},
|
||||
ViewID: view.ID,
|
||||
Views: []*View{view},
|
||||
NodeID: nodeID,
|
||||
}
|
||||
view.Table.Columns = []*ViewTableColumn{{ID: key.ID}}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue