mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 06:18:49 +01:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
526bd76c4c
commit
49cc87381c
4 changed files with 29 additions and 20 deletions
|
|
@ -210,7 +210,7 @@ func (value *Value) IsEdited() bool {
|
|||
}
|
||||
|
||||
if KeyTypeCheckbox == value.Type {
|
||||
// 勾选框不会为空,即使勾选框未勾选,也不算是空,所以不能用下面的 IsEmpty 判断,这里使用更新时间判断是否编辑过 https://github.com/siyuan-note/siyuan/issues/11016
|
||||
// 复选框不会为空,即使复选框未勾选,也不算是空,所以不能用下面的 IsEmpty 判断,这里使用更新时间判断是否编辑过 https://github.com/siyuan-note/siyuan/issues/11016
|
||||
return value.CreatedAt != value.UpdatedAt
|
||||
}
|
||||
|
||||
|
|
@ -289,7 +289,7 @@ func (value *Value) IsEmpty() bool {
|
|||
if nil == value.Checkbox {
|
||||
return true
|
||||
}
|
||||
return false // 勾选框不会为空
|
||||
return false // 复选框不会为空
|
||||
case KeyTypeRelation:
|
||||
return 1 > len(value.Relation.Contents)
|
||||
case KeyTypeRollup:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue