mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
✨ Database kanban view https://github.com/siyuan-note/siyuan/issues/8873
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
2d8f4a3030
commit
3211d331fa
3 changed files with 80 additions and 2 deletions
|
|
@ -24,6 +24,13 @@ import (
|
|||
type LayoutKanban struct {
|
||||
*BaseLayout
|
||||
|
||||
CoverFrom CoverFrom `json:"coverFrom"` // 封面来源,0:无,1:内容图,2:资源字段
|
||||
CoverFromAssetKeyID string `json:"coverFromAssetKeyID,omitempty"` // 资源字段 ID,CoverFrom 为 2 时有效
|
||||
CardAspectRatio CardAspectRatio `json:"cardAspectRatio"` // 卡片宽高比
|
||||
CardSize CardSize `json:"cardSize"` // 卡片大小,0:小卡片,1:中卡片,2:大卡片
|
||||
FitImage bool `json:"fitImage"` // 是否适应封面图片大小
|
||||
DisplayFieldName bool `json:"displayFieldName"` // 是否显示字段名称
|
||||
|
||||
Fields []*ViewKanbanField `json:"fields"` // 字段
|
||||
}
|
||||
|
||||
|
|
@ -34,6 +41,9 @@ func NewLayoutKanban() *LayoutKanban {
|
|||
ID: ast.NewNodeID(),
|
||||
ShowIcon: true,
|
||||
},
|
||||
CoverFrom: CoverFromContentImage,
|
||||
CardAspectRatio: CardAspectRatio16_9,
|
||||
CardSize: CardSizeMedium,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue