An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
Danielf575036b6e44
diff --git a/kernel/av/layout.go b/kernel/av/layout.goindex db867d5011..720470f8e0 100644--- a/kernel/av/layout.go+++ b/kernel/av/layout.go@@ -50,6 +50,7 @@ type BaseInstanceField struct {Name string `json:"name"` // 字段名Type KeyType `json:"type"` // 字段类型Icon string `json:"icon"` // 字段图标+ Wrap bool `json:"wrap"` // 是否换行Hidden bool `json:"hidden"` // 是否隐藏Desc string `json:"desc"` // 字段描述diff --git a/kernel/av/layout_gallery.go b/kernel/av/layout_gallery.goindex 86761c5491..b3b9760086 100644--- a/kernel/av/layout_gallery.go+++ b/kernel/av/layout_gallery.go@@ -73,6 +73,7 @@ const (type ViewGalleryCardField struct {ID string `json:"id"` // 字段 ID+ Wrap bool `json:"wrap"` // 是否换行Hidden bool `json:"hidden"` // 是否隐藏Desc string `json:"desc,omitempty"` // 字段描述}diff --git a/kernel/av/layout_table.go b/kernel/av/layout_table.goindex 220e4f10af..672d357d18 100644--- a/kernel/av/layout_table.go+++ b/kernel/av/layout_table.go@@ -67,7 +67,6 @@ type Table struct {type TableColumn struct {*BaseInstanceField- Wrap bool `json:"wrap"` // 是否换行Pin bool `json:"pin"` // 是否固定Width string `json:"width"` // 列宽度Calc *ColumnCalc `json:"calc"` // 计算diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex bd2a209a2a..5621abfa82 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -68,7 +68,6 @@ func changeAttrViewLayout(operation *Operation) (err error) {return}- view.LayoutType = newLayoutswitch newLayout {case av.LayoutTypeTable:if nil != view.Table {@@ -102,6 +101,7 @@ func changeAttrViewLayout(operation *Operation) (err error) {}}+ view.LayoutType = newLayouterr = av.SaveAttributeView(attrView)return}@@ -1859,6 +1859,7 @@ func (tx *Transaction) doDuplicateAttrViewView(operation *Operation) (ret *TxErrfor _, field := range masterView.Gallery.CardFields {view.Gallery.CardFields = append(view.Gallery.CardFields, &av.ViewGalleryCardField{ID: field.ID,+ Wrap: field.Wrap,Hidden: field.Hidden,Desc: field.Desc,})diff --git a/kernel/sql/av_table.go b/kernel/sql/av_table.goindex 4dd5d91175..955f16a140 100644--- a/kernel/sql/av_table.go+++ b/kernel/sql/av_table.go@@ -55,6 +55,7 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query sName: key.Name,Type: key.Type,Icon: key.Icon,+ Wrap: col.Wrap,Hidden: col.Hidden,Desc: key.Desc,Options: key.Options,@@ -64,7 +65,6 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query sRollup: key.Rollup,Date: key.Date,},- Wrap: col.Wrap,Width: col.Width,Pin: col.Pin,Calc: col.Calc,