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
2b753ac16f
commit
0341a1cb03
13 changed files with 2183 additions and 1939 deletions
|
|
@ -20,18 +20,7 @@ import (
|
|||
|
||||
func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query string) (ret *av.Gallery) {
|
||||
ret = &av.Gallery{
|
||||
BaseInstance: &av.BaseInstance{
|
||||
ID: view.ID,
|
||||
Icon: view.Icon,
|
||||
Name: view.Name,
|
||||
Desc: view.Desc,
|
||||
HideAttrViewName: view.HideAttrViewName,
|
||||
Filters: view.Filters,
|
||||
Sorts: view.Sorts,
|
||||
Group: view.Group,
|
||||
ShowIcon: view.Gallery.ShowIcon,
|
||||
WrapField: view.Gallery.WrapField,
|
||||
},
|
||||
BaseInstance: av.NewViewBaseInstance(view),
|
||||
CoverFrom: view.Gallery.CoverFrom,
|
||||
CoverFromAssetKeyID: view.Gallery.CoverFromAssetKeyID,
|
||||
CardAspectRatio: view.Gallery.CardAspectRatio,
|
||||
|
|
@ -59,6 +48,7 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
|
|||
Wrap: field.Wrap,
|
||||
Hidden: field.Hidden,
|
||||
Desc: key.Desc,
|
||||
Calc: field.Calc,
|
||||
Options: key.Options,
|
||||
NumberFormat: key.NumberFormat,
|
||||
Template: key.Template,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue