mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Clean code
This commit is contained in:
parent
c022264a59
commit
d5aa5d8e82
1 changed files with 12 additions and 9 deletions
|
|
@ -32,6 +32,7 @@ type LayoutTable struct {
|
||||||
PageSize int `json:"pageSize"` // 每页行数
|
PageSize int `json:"pageSize"` // 每页行数
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ViewTableColumn 描述了表格列的结构。
|
||||||
type ViewTableColumn struct {
|
type ViewTableColumn struct {
|
||||||
ID string `json:"id"` // 列 ID
|
ID string `json:"id"` // 列 ID
|
||||||
|
|
||||||
|
|
@ -80,17 +81,19 @@ type TableColumn struct {
|
||||||
Date *Date `json:"date,omitempty"` // 日期设置
|
Date *Date `json:"date,omitempty"` // 日期设置
|
||||||
}
|
}
|
||||||
|
|
||||||
type TableCell struct {
|
// TableRow 描述了表格行的结构。
|
||||||
ID string `json:"id"`
|
type TableRow struct {
|
||||||
Value *Value `json:"value"`
|
ID string `json:"id"` // 行 ID
|
||||||
ValueType KeyType `json:"valueType"`
|
Cells []*TableCell `json:"cells"` // 行单元格
|
||||||
Color string `json:"color"`
|
|
||||||
BgColor string `json:"bgColor"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type TableRow struct {
|
// TableCell 描述了表格单元格的结构。
|
||||||
ID string `json:"id"`
|
type TableCell struct {
|
||||||
Cells []*TableCell `json:"cells"`
|
ID string `json:"id"` // 单元格 ID
|
||||||
|
Value *Value `json:"value"` // 单元格值
|
||||||
|
ValueType KeyType `json:"valueType"` // 单元格值类型
|
||||||
|
Color string `json:"color"` // 单元格颜色
|
||||||
|
BgColor string `json:"bgColor"` // 单元格背景颜色
|
||||||
}
|
}
|
||||||
|
|
||||||
func (row *TableRow) GetBlockValue() (ret *Value) {
|
func (row *TableRow) GetBlockValue() (ret *Value) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue