🎨 Supports searching database view content https://github.com/siyuan-note/siyuan/issues/9419

This commit is contained in:
Daniel 2023-10-13 10:44:29 +08:00
parent 2304921fee
commit 3de7781b1c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 371 additions and 81 deletions

View file

@ -73,14 +73,6 @@ const (
CalcOperatorLatest CalcOperator = "Latest"
)
type TableCell struct {
ID string `json:"id"`
Value *Value `json:"value"`
ValueType KeyType `json:"valueType"`
Color string `json:"color"`
BgColor string `json:"bgColor"`
}
func (value *Value) Compare(other *Value) int {
if nil == value {
return -1
@ -566,6 +558,14 @@ type TableColumn struct {
Template string `json:"template"` // 模板内容
}
type TableCell struct {
ID string `json:"id"`
Value *Value `json:"value"`
ValueType KeyType `json:"valueType"`
Color string `json:"color"`
BgColor string `json:"bgColor"`
}
type TableRow struct {
ID string `json:"id"`
Cells []*TableCell `json:"cells"`