mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
♻️ Refactor av
This commit is contained in:
parent
1dcc635f4d
commit
67b8566047
5 changed files with 55 additions and 28 deletions
|
@ -572,8 +572,11 @@ 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 {
|
||||
switch v.LayoutType {
|
||||
case av.LayoutTypeTable:
|
||||
pSize = v.Table.PageSize
|
||||
case av.LayoutTypeGallery:
|
||||
pSize = v.Gallery.PageSize
|
||||
}
|
||||
|
||||
view := map[string]interface{}{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue