mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +01:00
🎨 Improve av
This commit is contained in:
parent
3afaa2551e
commit
037619368a
2 changed files with 14 additions and 14 deletions
|
|
@ -1851,13 +1851,13 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
|
|||
}
|
||||
|
||||
v.Name = "" // 分组视图的名称在渲染时才填充
|
||||
v.GroupValue = &av.Value{Type: av.KeyTypeText, Text: &av.ValueText{Content: groupValue}}
|
||||
v.GroupVal = &av.Value{Type: av.KeyTypeText, Text: &av.ValueText{Content: groupValue}}
|
||||
if av.KeyTypeSelect == groupKey.Type || av.KeyTypeMSelect == groupKey.Type {
|
||||
v.GroupValue.Text = nil
|
||||
v.GroupValue.Type = av.KeyTypeSelect
|
||||
v.GroupVal.Text = nil
|
||||
v.GroupVal.Type = av.KeyTypeSelect
|
||||
|
||||
opt := groupKey.GetOption(groupVal)
|
||||
v.GroupValue.MSelect = []*av.ValueSelect{{Content: opt.Name, Color: opt.Color}}
|
||||
v.GroupVal.MSelect = []*av.ValueSelect{{Content: opt.Name, Color: opt.Color}}
|
||||
}
|
||||
view.Groups = append(view.Groups, v)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue