🎨 Update av
This commit is contained in:
parent
90f1798dff
commit
945e8af6be
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue