mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-03 22:21:48 +01:00
🎨 Add template type column to Attribute View https://github.com/siyuan-note/siyuan/issues/8766
This commit is contained in:
parent
dbdddd7ff3
commit
b833087cb6
4 changed files with 36 additions and 4 deletions
|
|
@ -79,6 +79,7 @@ type Key struct {
|
|||
|
||||
Options []*KeySelectOption `json:"options,omitempty"` // 选项列表
|
||||
NumberFormat NumberFormat `json:"numberFormat"` // 列数字格式化
|
||||
Template string `json:"template"` // 模板内容
|
||||
}
|
||||
|
||||
func NewKey(id, name string, keyType KeyType) *Key {
|
||||
|
|
@ -350,7 +351,6 @@ type ValueAsset struct {
|
|||
}
|
||||
|
||||
type ValueTemplate struct {
|
||||
Content string `json:"content"`
|
||||
RenderedContent string `json:"renderedContent"`
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -396,6 +396,7 @@ type TableColumn struct {
|
|||
|
||||
Options []*KeySelectOption `json:"options,omitempty"` // 选项列表
|
||||
NumberFormat NumberFormat `json:"numberFormat"` // 列数字格式化
|
||||
Template string `json:"template"` // 模板内容
|
||||
}
|
||||
|
||||
type TableRow struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue