🎨 Improve av

This commit is contained in:
Daniel 2025-08-05 17:09:11 +08:00
parent 9098b3f874
commit 3afaa2551e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 34 additions and 17 deletions

View file

@ -197,11 +197,18 @@ type View struct {
Groups []*View `json:"groups,omitempty"` // 分组视图列表
GroupItemIDs []string `json:"groupItemIds"` // 分组项目 ID 列表,用于维护分组中的所有项目
GroupCalc *GroupCalc `json:"groupCalc,omitempty"` // 分组计算规则
GroupValue string `json:"groupValue,omitempty"` // 分组值
GroupValue *Value `json:"groupValue,omitempty"` // 分组值
GroupFolded bool `json:"groupFolded"` // 分组是否折叠
GroupHidden int `json:"groupHidden"` // 分组是否隐藏0显示1空白隐藏2手动隐藏
}
func (view *View) GetGroupValue() string {
if nil == view.GroupValue {
return ""
}
return view.GroupValue.String(false)
}
// GetGroup 获取指定分组 ID 的分组视图。
func (view *View) GetGroup(groupID string) *View {
if nil == view.Groups {