mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15650
This commit is contained in:
parent
c2ac34942b
commit
4f073c85cd
1 changed files with 4 additions and 3 deletions
|
@ -562,9 +562,10 @@ func SetAttributeViewGroup(avID, blockID string, group *av.ViewGroup) (err error
|
||||||
// 首次设置分组时,如果分组字段是单选或多选类型,则将分组方式改为按选项排序 https://github.com/siyuan-note/siyuan/issues/15534
|
// 首次设置分组时,如果分组字段是单选或多选类型,则将分组方式改为按选项排序 https://github.com/siyuan-note/siyuan/issues/15534
|
||||||
view.Group.Order = av.GroupOrderSelectOption
|
view.Group.Order = av.GroupOrderSelectOption
|
||||||
sortGroupsBySelectOption(view, groupKey)
|
sortGroupsBySelectOption(view, groupKey)
|
||||||
for i, g := range view.Groups {
|
}
|
||||||
g.GroupSort = i
|
|
||||||
}
|
for i, g := range view.Groups {
|
||||||
|
g.GroupSort = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue