mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
407ceb2e6d
commit
e8a592e4e7
2 changed files with 12 additions and 11 deletions
|
|
@ -32,6 +32,16 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func RenderView(view *av.View, attrView *av.AttributeView, query string) (ret av.Viewable) {
|
||||
switch view.LayoutType {
|
||||
case av.LayoutTypeTable:
|
||||
ret = RenderAttributeViewTable(attrView, view, query)
|
||||
case av.LayoutTypeGallery:
|
||||
ret = RenderAttributeViewGallery(attrView, view, query)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func RenderTemplateField(ial map[string]string, keyValues []*av.KeyValues, tplContent string) (ret string, err error) {
|
||||
if "" == ial["id"] {
|
||||
block := getBlockValue(keyValues)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue