mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443
This commit is contained in:
parent
3ce6e4824b
commit
cb726e0118
7 changed files with 62 additions and 43 deletions
|
|
@ -299,7 +299,8 @@ func renderTemplate(p, id string, preview bool) (string, error) {
|
|||
}
|
||||
} else {
|
||||
// 预览时使用简单表格渲染
|
||||
view, getErr := attrView.GetCurrentView()
|
||||
viewID := n.IALAttr(av.NodeAttrView)
|
||||
view, getErr := attrView.GetCurrentView(viewID)
|
||||
if nil != getErr {
|
||||
logging.LogErrorf("get attribute view [%s] failed: %s", n.AttributeViewID, getErr)
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue