mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Supports searching database view content https://github.com/siyuan-note/siyuan/issues/9419
This commit is contained in:
parent
2304921fee
commit
3de7781b1c
3 changed files with 371 additions and 81 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue