Daniel 2025-06-30 12:50:50 +08:00
parent 60d44fec3d
commit 3c21d39e52
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 52 additions and 23 deletions

View file

@ -26,14 +26,14 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
Filters: view.Filters,
Sorts: view.Sorts,
Group: view.Group,
ShowIcon: view.Gallery.ShowIcon,
WrapField: view.Gallery.WrapField,
},
CoverFrom: view.Gallery.CoverFrom,
CoverFromAssetKeyID: view.Gallery.CoverFromAssetKeyID,
CardAspectRatio: view.Gallery.CardAspectRatio,
CardSize: view.Gallery.CardSize,
FitImage: view.Gallery.FitImage,
ShowIcon: view.Gallery.ShowIcon,
WrapField: view.Gallery.WrapField,
Fields: []*av.GalleryField{},
Cards: []*av.GalleryCard{},
}
@ -53,6 +53,7 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
Name: key.Name,
Type: key.Type,
Icon: key.Icon,
Wrap: field.Wrap,
Hidden: field.Hidden,
Desc: key.Desc,
Options: key.Options,

View file

@ -33,6 +33,8 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
Filters: view.Filters,
Sorts: view.Sorts,
Group: view.Group,
ShowIcon: view.Table.ShowIcon,
WrapField: view.Table.WrapField,
},
Columns: []*av.TableColumn{},
Rows: []*av.TableRow{},
@ -53,6 +55,7 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
Name: key.Name,
Type: key.Type,
Icon: key.Icon,
Wrap: col.Wrap,
Hidden: col.Hidden,
Desc: key.Desc,
Options: key.Options,
@ -62,7 +65,6 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
Rollup: key.Rollup,
Date: key.Date,
},
Wrap: col.Wrap,
Width: col.Width,
Pin: col.Pin,
Calc: col.Calc,