🎨 Update av export

This commit is contained in:
Daniel 2023-09-26 09:38:50 +08:00
parent 3cd6e0d953
commit 376384d4e3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 58 additions and 32 deletions

View file

@ -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