🎨 Improve adding rows of the filtered database table view https://github.com/siyuan-note/siyuan/issues/10025

This commit is contained in:
Daniel 2023-12-30 16:59:41 +08:00
parent 2db7c5167d
commit 76dd5a2d28
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 228 additions and 24 deletions

View file

@ -30,12 +30,11 @@ import (
)
type Value struct {
ID string `json:"id,omitempty"`
KeyID string `json:"keyID,omitempty"`
BlockID string `json:"blockID,omitempty"`
Type KeyType `json:"type,omitempty"`
IsDetached bool `json:"isDetached,omitempty"`
IsInitialized bool `json:"isInitialized,omitempty"`
ID string `json:"id,omitempty"`
KeyID string `json:"keyID,omitempty"`
BlockID string `json:"blockID,omitempty"`
Type KeyType `json:"type,omitempty"`
IsDetached bool `json:"isDetached,omitempty"`
Block *ValueBlock `json:"block,omitempty"`
Text *ValueText `json:"text,omitempty"`
@ -54,10 +53,6 @@ type Value struct {
Rollup *ValueRollup `json:"rollup,omitempty"`
}
func (value *Value) NotAffectFilter() bool {
return !value.IsInitialized && nil != value.Block && "" == value.Block.Content && value.IsDetached
}
func (value *Value) String() string {
switch value.Type {
case KeyTypeBlock: