mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +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
4fe334a9f8
commit
404068b91b
4 changed files with 22 additions and 18 deletions
|
|
@ -64,6 +64,7 @@ type Kanban struct {
|
||||||
CardSize CardSize `json:"cardSize"` // 卡片大小
|
CardSize CardSize `json:"cardSize"` // 卡片大小
|
||||||
FitImage bool `json:"fitImage"` // 是否适应封面图片大小
|
FitImage bool `json:"fitImage"` // 是否适应封面图片大小
|
||||||
DisplayFieldName bool `json:"displayFieldName"` // 是否显示字段名称
|
DisplayFieldName bool `json:"displayFieldName"` // 是否显示字段名称
|
||||||
|
FillColBackgroundColor bool `json:"fillColBackgroundColor"` // 是否填充列背景颜色
|
||||||
Fields []*KanbanField `json:"fields"` // 卡片字段
|
Fields []*KanbanField `json:"fields"` // 卡片字段
|
||||||
Cards []*KanbanCard `json:"cards"` // 卡片
|
Cards []*KanbanCard `json:"cards"` // 卡片
|
||||||
CardCount int `json:"rowCount"` // 总卡片数
|
CardCount int `json:"rowCount"` // 总卡片数
|
||||||
|
|
|
||||||
|
|
@ -2788,6 +2788,7 @@ func (tx *Transaction) doDuplicateAttrViewView(operation *Operation) (ret *TxErr
|
||||||
view.Kanban.CardSize = masterView.Kanban.CardSize
|
view.Kanban.CardSize = masterView.Kanban.CardSize
|
||||||
view.Kanban.FitImage = masterView.Kanban.FitImage
|
view.Kanban.FitImage = masterView.Kanban.FitImage
|
||||||
view.Kanban.DisplayFieldName = masterView.Kanban.DisplayFieldName
|
view.Kanban.DisplayFieldName = masterView.Kanban.DisplayFieldName
|
||||||
|
view.Kanban.FillColBackgroundColor = masterView.Kanban.FillColBackgroundColor
|
||||||
view.Kanban.ShowIcon = masterView.Kanban.ShowIcon
|
view.Kanban.ShowIcon = masterView.Kanban.ShowIcon
|
||||||
view.Kanban.WrapField = masterView.Kanban.WrapField
|
view.Kanban.WrapField = masterView.Kanban.WrapField
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ func RenderGroupView(attrView *av.AttributeView, view, groupView *av.View, query
|
||||||
groupView.Kanban.CardSize = view.Kanban.CardSize
|
groupView.Kanban.CardSize = view.Kanban.CardSize
|
||||||
groupView.Kanban.FitImage = view.Kanban.FitImage
|
groupView.Kanban.FitImage = view.Kanban.FitImage
|
||||||
groupView.Kanban.DisplayFieldName = view.Kanban.DisplayFieldName
|
groupView.Kanban.DisplayFieldName = view.Kanban.DisplayFieldName
|
||||||
|
groupView.Kanban.FillColBackgroundColor = view.Kanban.FillColBackgroundColor
|
||||||
}
|
}
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logging.LogErrorf("copy view fields [%s] to group [%s] failed: %s", view.ID, groupView.ID, err)
|
logging.LogErrorf("copy view fields [%s] to group [%s] failed: %s", view.ID, groupView.ID, err)
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ func RenderAttributeViewKanban(attrView *av.AttributeView, view *av.View, query
|
||||||
CardSize: view.Kanban.CardSize,
|
CardSize: view.Kanban.CardSize,
|
||||||
FitImage: view.Kanban.FitImage,
|
FitImage: view.Kanban.FitImage,
|
||||||
DisplayFieldName: view.Kanban.DisplayFieldName,
|
DisplayFieldName: view.Kanban.DisplayFieldName,
|
||||||
|
FillColBackgroundColor: view.Kanban.FillColBackgroundColor,
|
||||||
Fields: []*av.KanbanField{},
|
Fields: []*av.KanbanField{},
|
||||||
Cards: []*av.KanbanCard{},
|
Cards: []*av.KanbanCard{},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue