mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 02:04:20 +01:00
🎨 Add template type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8766
This commit is contained in:
parent
b4bded40e3
commit
4fdd0ddef0
2 changed files with 33 additions and 26 deletions
|
|
@ -354,8 +354,8 @@ type ValueTemplate struct {
|
|||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
func (t *ValueTemplate) Render(blockID string, r func(blockID string) string) {
|
||||
t.Content = r(blockID)
|
||||
func (t *ValueTemplate) Render(blockID, tplContent string, r func(blockID, tplContent string) string) {
|
||||
t.Content = r(blockID, tplContent)
|
||||
}
|
||||
|
||||
// View 描述了视图的结构。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue