mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
eafe42fe59
commit
99db625cf7
5 changed files with 24 additions and 17 deletions
|
|
@ -45,9 +45,9 @@ func NewLayoutTable() *LayoutTable {
|
|||
type ViewTableColumn struct {
|
||||
*BaseField
|
||||
|
||||
Pin bool `json:"pin"` // 是否固定
|
||||
Width string `json:"width"` // 列宽度
|
||||
Calc *ColumnCalc `json:"calc,omitempty"` // 计算
|
||||
Pin bool `json:"pin"` // 是否固定
|
||||
Width string `json:"width"` // 列宽度
|
||||
Calc *FieldCalc `json:"calc,omitempty"` // 计算规则
|
||||
}
|
||||
|
||||
// Table 描述了表格视图实例的结构。
|
||||
|
|
@ -63,9 +63,9 @@ type Table struct {
|
|||
type TableColumn struct {
|
||||
*BaseInstanceField
|
||||
|
||||
Pin bool `json:"pin"` // 是否固定
|
||||
Width string `json:"width"` // 列宽度
|
||||
Calc *ColumnCalc `json:"calc"` // 计算
|
||||
Pin bool `json:"pin"` // 是否固定
|
||||
Width string `json:"width"` // 列宽度
|
||||
Calc *FieldCalc `json:"calc"` // 计算规则和结果
|
||||
}
|
||||
|
||||
// TableRow 描述了表格实例行的结构。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue