mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02: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
b8538772f8
commit
2d8f4a3030
3 changed files with 9 additions and 1 deletions
|
@ -766,6 +766,11 @@ func (av *AttributeView) Clone() (ret *AttributeView) {
|
|||
for _, cardField := range view.Gallery.CardFields {
|
||||
cardField.ID = keyIDMap[cardField.ID]
|
||||
}
|
||||
case LayoutTypeKanban:
|
||||
view.Kanban.ID = ast.NewNodeID()
|
||||
for _, field := range view.Kanban.Fields {
|
||||
field.ID = keyIDMap[field.ID]
|
||||
}
|
||||
}
|
||||
view.ItemIDs = []string{}
|
||||
}
|
||||
|
|
|
@ -81,6 +81,9 @@ func NewViewBaseInstance(view *View) *BaseInstance {
|
|||
case LayoutTypeGallery:
|
||||
showIcon = view.Gallery.ShowIcon
|
||||
wrapField = view.Gallery.WrapField
|
||||
case LayoutTypeKanban:
|
||||
showIcon = view.Kanban.ShowIcon
|
||||
wrapField = view.Kanban.WrapField
|
||||
}
|
||||
return &BaseInstance{
|
||||
ID: view.ID,
|
||||
|
|
|
@ -24,7 +24,7 @@ import (
|
|||
type LayoutKanban struct {
|
||||
*BaseLayout
|
||||
|
||||
GroupFields []*ViewKanbanField `json:"field"` // 字段
|
||||
Fields []*ViewKanbanField `json:"fields"` // 字段
|
||||
}
|
||||
|
||||
func NewLayoutKanban() *LayoutKanban {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue