mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve database paging loading https://github.com/siyuan-note/siyuan/issues/12780
This commit is contained in:
@@ -560,12 +560,18 @@ func renderAttributeView(c *gin.Context) {
|
||||
|
||||
var views []map[string]interface{}
|
||||
for _, v := range attrView.Views {
|
||||
pSize := 10
|
||||
if nil != v.Table && av.LayoutTypeTable == v.LayoutType {
|
||||
pSize = v.Table.PageSize
|
||||
}
|
||||
|
||||
view := map[string]interface{}{
|
||||
"id": v.ID,
|
||||
"icon": v.Icon,
|
||||
"name": v.Name,
|
||||
"hideAttrViewName": v.HideAttrViewName,
|
||||
"type": v.LayoutType,
|
||||
"pageSize": pSize,
|
||||
}
|
||||
|
||||
views = append(views, view)
|
||||
|
||||
Reference in New Issue
Block a user