🎨 Database select field supports sorting by option order Fix https://github.com/siyuan-note/siyuan/issues/10665

This commit is contained in:
Daniel 2024-03-21 10:03:08 +08:00
parent d522a74654
commit 30d95605df
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 30 additions and 15 deletions

View file

@ -724,7 +724,7 @@ func renderAttributeView(attrView *av.AttributeView, viewID, query string, page,
}
viewable.FilterRows(attrView)
viewable.SortRows()
viewable.SortRows(attrView)
viewable.CalcCols()
// 分页
@ -2010,7 +2010,7 @@ func addAttributeViewBlock(avID, blockID, previousBlockID, addingBlockID string,
if nil != view && 0 < len(view.Table.Filters) && !ignoreFillFilter {
viewable, _ := renderAttributeViewTable(attrView, view, "")
viewable.FilterRows(attrView)
viewable.SortRows()
viewable.SortRows(attrView)
var nearRow *av.TableRow
if 0 < len(viewable.Rows) {