Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-14 21:55:00 +08:00
parent b8538772f8
commit 2d8f4a3030
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 9 additions and 1 deletions

View file

@ -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{}
}

View file

@ -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,

View file

@ -24,7 +24,7 @@ import (
type LayoutKanban struct {
*BaseLayout
GroupFields []*ViewKanbanField `json:"field"` // 字段
Fields []*ViewKanbanField `json:"fields"` // 字段
}
func NewLayoutKanban() *LayoutKanban {