mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 04:10:16 +01:00
🎨 Database table view cell value adds createdAt and updatedAt fields https://github.com/siyuan-note/siyuan/issues/10492
Adding rows after setting the sort field in the database table view no longer fills in the default value https://github.com/siyuan-note/siyuan/issues/10486
This commit is contained in:
parent
49031aaca7
commit
01744ae69e
4 changed files with 71 additions and 72 deletions
|
|
@ -84,12 +84,20 @@ const (
|
|||
|
||||
func (value *Value) Compare(other *Value) int {
|
||||
if nil == value {
|
||||
return -1
|
||||
return 1
|
||||
}
|
||||
if nil == other {
|
||||
return -1
|
||||
}
|
||||
|
||||
if !value.IsEdited() {
|
||||
return 1
|
||||
}
|
||||
|
||||
if !other.IsEdited() {
|
||||
return -1
|
||||
}
|
||||
|
||||
switch value.Type {
|
||||
case KeyTypeBlock:
|
||||
if nil != value.Block && nil != other.Block {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue