♻️ Refactor av data structure

This commit is contained in:
Daniel 2023-07-13 10:34:51 +08:00
parent f132067952
commit f123a9a210
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 12 additions and 7 deletions

View file

@ -251,6 +251,10 @@ type TableColumn struct {
Hidden bool `json:"hidden"` // 是否隐藏
Width string `json:"width"` // 列宽度
Calc *ColumnCalc `json:"calc"` // 计算
// 以下是某些列类型的特有属性
Options []*KeySelectOption `json:"options,omitempty"` // 选项列表
}
type TableRow struct {

View file

@ -92,6 +92,7 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
Wrap: col.Wrap,
Hidden: col.Hidden,
Width: col.Width,
Options: key.Options,
})
}