mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
This commit is contained in:
parent
efa308d945
commit
9c1d6a1a70
12 changed files with 63 additions and 67 deletions
|
|
@ -16,20 +16,14 @@
|
|||
|
||||
package av
|
||||
|
||||
type Cell interface {
|
||||
|
||||
// Value 返回单元格的值。
|
||||
Value() string
|
||||
type Cell struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
type CellBlock struct {
|
||||
ID string `json:"id"`
|
||||
*Cell
|
||||
}
|
||||
|
||||
func NewCellBlock(blockID string) *CellBlock {
|
||||
return &CellBlock{ID: blockID}
|
||||
}
|
||||
|
||||
func (c *CellBlock) Value() string {
|
||||
return c.ID
|
||||
return &CellBlock{&Cell{Value: blockID}}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue