mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Update av
This commit is contained in:
parent
42f9c6e657
commit
461a438df0
2 changed files with 13 additions and 25 deletions
|
|
@ -17,21 +17,9 @@
|
|||
package av
|
||||
|
||||
type Cell struct {
|
||||
ID string `json:"id"`
|
||||
Value *CellValue `json:"value"`
|
||||
Color string `json:"color"`
|
||||
BgColor string `json:"bgColor"`
|
||||
}
|
||||
|
||||
type CellValue struct {
|
||||
Type ColumnType `json:"type"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
func (v *CellValue) String() string {
|
||||
switch v.Type {
|
||||
case ColumnTypeText:
|
||||
return v.Data.(string)
|
||||
}
|
||||
return v.Data.(string)
|
||||
ID string `json:"id"`
|
||||
Value string `json:"value"`
|
||||
RenderValue interface{} `json:"renderValue"`
|
||||
Color string `json:"color"`
|
||||
BgColor string `json:"bgColor"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue