mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 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)
|
blockValues.Values = append(blockValues.Values, value)
|
||||||
|
|
||||||
attrs := parse.IAL2Map(node.KramdownIAL)
|
attrs := parse.IAL2Map(node.KramdownIAL)
|
||||||
attrs[NodeAttrNamePrefixAvKey+operation.AvID+"-"+blockValues.Key.ID] = "" // 将列作为属性添加到块中
|
|
||||||
|
|
||||||
if "" == attrs[NodeAttrNameAvs] {
|
if "" == attrs[NodeAttrNameAvs] {
|
||||||
attrs[NodeAttrNameAvs] = operation.AvID
|
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 {
|
for name, value := range nameValues {
|
||||||
if strings.HasPrefix(name, "av") {
|
if strings.HasPrefix(name, "custom-av") {
|
||||||
// 属性视图设置的属性值可以为空
|
// 属性视图设置的属性值可以为空
|
||||||
node.SetIALAttr(name, value)
|
node.SetIALAttr(name, value)
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue