This commit is contained in:
Daniel 2025-08-05 17:38:07 +08:00
parent d3ec7aa4bb
commit 11f7ad6a70
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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}}