This commit is contained in:
Daniel 2025-07-05 12:11:12 +08:00
parent 2b753ac16f
commit 0341a1cb03
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
13 changed files with 2183 additions and 1939 deletions

View file

@ -173,14 +173,15 @@ func (gallery *Gallery) GetFields() (ret []Field) {
return ret
}
func (gallery *Gallery) GetField(id string) Field {
for _, field := range gallery.Fields {
if field.ID == id {
return field
}
}
return nil
}
func (gallery *Gallery) GetType() LayoutType {
return LayoutTypeGallery
}
func (gallery *Gallery) Sort(attrView *AttributeView) {
sort0(gallery, attrView)
}
func (gallery *Gallery) Filter(attrView *AttributeView) {
filter0(gallery, attrView)
}