mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 00:34:20 +01:00
🎨 Update av
This commit is contained in:
parent
639f083d9a
commit
42f9c6e657
2 changed files with 22 additions and 15 deletions
|
|
@ -17,14 +17,21 @@
|
|||
package av
|
||||
|
||||
type Cell struct {
|
||||
ID string `json:"id"`
|
||||
Value *CellValue `json:"value"`
|
||||
RenderValue interface{} `json:"renderValue"`
|
||||
Color string `json:"color"`
|
||||
BgColor string `json:"bgColor"`
|
||||
ID string `json:"id"`
|
||||
Value *CellValue `json:"value"`
|
||||
Color string `json:"color"`
|
||||
BgColor string `json:"bgColor"`
|
||||
}
|
||||
|
||||
type CellValue struct {
|
||||
Type ColumnType `json:"type"`
|
||||
Value interface{} `json:"value"`
|
||||
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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue