mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
526bd76c4c
commit
49cc87381c
4 changed files with 29 additions and 20 deletions
|
|
@ -1598,6 +1598,14 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
|
|||
groupItemsMap[groupName] = append(groupItemsMap[groupName], item)
|
||||
}
|
||||
|
||||
if av.KeyTypeSelect == groupKey.Type || av.KeyTypeMSelect == groupKey.Type {
|
||||
for _, o := range groupKey.Options {
|
||||
if _, ok := groupItemsMap[o.Name]; !ok {
|
||||
groupItemsMap[o.Name] = []av.Item{}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for name, groupItems := range groupItemsMap {
|
||||
var v *av.View
|
||||
switch view.LayoutType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue