This commit is contained in:
Daniel 2025-06-29 17:06:05 +08:00
parent 1a02d153e6
commit 253ad72913
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 13 additions and 0 deletions

View file

@ -247,6 +247,7 @@ func NewGalleryView() (ret *View) {
type Viewable interface {
Filterable
Sortable
Groupable
Calculable
GetType() LayoutType

View file

@ -300,3 +300,7 @@ func filter0(collection Collection, attrView *AttributeView) {
}
collection.SetItems(items)
}
func group0(collection Collection, attrView *AttributeView) {
// TODO 分组 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
}

View file

@ -196,3 +196,7 @@ func (gallery *Gallery) Sort(attrView *AttributeView) {
func (gallery *Gallery) Filter(attrView *AttributeView) {
filter0(gallery, attrView)
}
func (gallery *Gallery) Group(attrView *AttributeView) {
group0(gallery, attrView)
}

View file

@ -169,3 +169,7 @@ func (table *Table) Sort(attrView *AttributeView) {
func (table *Table) Filter(attrView *AttributeView) {
filter0(table, attrView)
}
func (table *Table) Group(attrView *AttributeView) {
group0(table, attrView)
}