mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
🎨 Add template type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8766
This commit is contained in:
parent
c0424caf67
commit
b69e8d3357
2 changed files with 28 additions and 0 deletions
|
|
@ -354,6 +354,10 @@ type ValueTemplate struct {
|
|||
RenderedContent string `json:"renderedContent"`
|
||||
}
|
||||
|
||||
func (t *ValueTemplate) Render(blockID string, r func(blockID string) string) {
|
||||
t.RenderedContent = r(blockID)
|
||||
}
|
||||
|
||||
// View 描述了视图的结构。
|
||||
type View struct {
|
||||
ID string `json:"id"` // 视图 ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue