This commit is contained in:
Daniel 2025-07-28 10:54:51 +08:00
parent 75b2ccfe82
commit 400153319e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 22 additions and 12 deletions

View file

@ -32,6 +32,19 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func RenderGroupView(attrView *av.AttributeView, view, groupView *av.View) (ret av.Viewable) {
switch groupView.LayoutType {
case av.LayoutTypeTable:
groupView.Table.Columns = view.Table.Columns
case av.LayoutTypeGallery:
groupView.Gallery.CardFields = view.Gallery.CardFields
}
groupView.Filters = view.Filters
groupView.Sorts = view.Sorts
return RenderView(attrView, groupView, "")
}
func RenderView(attrView *av.AttributeView, view *av.View, query string) (ret av.Viewable) {
switch view.LayoutType {
case av.LayoutTypeTable: