This commit is contained in:
Daniel 2025-07-06 16:31:09 +08:00
parent e17e9aa1cf
commit 2e444d899b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 4 additions and 3 deletions

View file

@ -221,7 +221,7 @@ func upgradeSpec1(av *AttributeView) {
}
}
// 补全过滤 Value
// 补全过滤规则 Value
for _, view := range av.Views {
if nil != view.Table {
for _, f := range view.Table.Filters {

View file

@ -24,7 +24,7 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
// ViewFilter 描述了视图过滤的结构。
// ViewFilter 描述了视图过滤规则的结构。
type ViewFilter struct {
Column string `json:"column"` // 列字段ID
Operator FilterOperator `json:"operator"` // 过滤操作符
@ -134,7 +134,7 @@ func (value *Value) Filter(filter *ViewFilter, attrView *AttributeView, rowID st
}
if nil != filter.Value && value.Type != filter.Value.Type {
// 由于字段类型被用户编辑过导致和过滤值类型不匹配,该情况下不过滤
// 由于字段类型被用户编辑过导致和过滤规则值类型不匹配,该情况下不过滤
return true
}

View file

@ -16,6 +16,7 @@
package av
// ViewGroup 描述了视图分组规则的结构。
type ViewGroup struct {
Field string `json:"field"` // 分组字段 ID
Method GroupMethod `json:"method"` // 分组方式