mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve av grouping https://github.com/siyuan-note/siyuan/issues/15443
This commit is contained in:
parent
d3ec7aa4bb
commit
11f7ad6a70
1 changed files with 1 additions and 1 deletions
|
@ -1863,7 +1863,7 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
|
|||
v.Name = "" // 分组视图的名称在渲染时才填充
|
||||
v.GroupVal = &av.Value{Type: av.KeyTypeText, Text: &av.ValueText{Content: groupValue}}
|
||||
if av.KeyTypeSelect == groupKey.Type || av.KeyTypeMSelect == groupKey.Type {
|
||||
if opt := groupKey.GetOption(groupVal); nil != opt {
|
||||
if opt := groupKey.GetOption(groupValue); nil != opt {
|
||||
v.GroupVal.Text = nil
|
||||
v.GroupVal.Type = av.KeyTypeSelect
|
||||
v.GroupVal.MSelect = []*av.ValueSelect{{Content: opt.Name, Color: opt.Color}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue