Skip to content

Commit

Permalink
🎨 Update av
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 7, 2023
1 parent 90f1798 commit 945e8af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion kernel/model/attribute_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ func addAttributeViewBlock(blockID string, operation *Operation, tree *parse.Tre
blockValues.Values = append(blockValues.Values, value)

attrs := parse.IAL2Map(node.KramdownIAL)
attrs[NodeAttrNamePrefixAvKey+operation.AvID+"-"+blockValues.Key.ID] = "" // 将列作为属性添加到块中

if "" == attrs[NodeAttrNameAvs] {
attrs[NodeAttrNameAvs] = operation.AvID
Expand Down
2 changes: 1 addition & 1 deletion kernel/model/blockial.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func setNodeAttrs0(node *ast.Node, nameValues map[string]string) (oldAttrs map[s
}

for name, value := range nameValues {
if strings.HasPrefix(name, "av") {
if strings.HasPrefix(name, "custom-av") {
// 属性视图设置的属性值可以为空
node.SetIALAttr(name, value)
continue
Expand Down

0 comments on commit 945e8af

Please sign in to comment.