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
759c12be06
commit
cff71aa720
7 changed files with 139 additions and 72 deletions
|
|
@ -66,7 +66,6 @@ type BaseInstance struct {
|
|||
|
||||
Groups []Viewable `json:"groups,omitempty"` // 分组实例列表
|
||||
GroupCalc *GroupCalc `json:"groupCalc,omitempty"` // 分组计算规则和结果
|
||||
GroupName string `json:"groupName,omitempty"` // 分组名称
|
||||
GroupFolded bool `json:"groupFolded"` // 分组是否折叠
|
||||
GroupHidden int `json:"groupHidden"` // 分组是否隐藏,0:显示,1:空白隐藏,2:手动隐藏
|
||||
}
|
||||
|
|
@ -91,7 +90,6 @@ func NewViewBaseInstance(view *View) *BaseInstance {
|
|||
Sorts: view.Sorts,
|
||||
Group: view.Group,
|
||||
GroupCalc: view.GroupCalc,
|
||||
GroupName: view.GroupName,
|
||||
GroupFolded: view.GroupFolded,
|
||||
GroupHidden: view.GroupHidden,
|
||||
ShowIcon: showIcon,
|
||||
|
|
@ -119,10 +117,6 @@ func (baseInstance *BaseInstance) GetGroupCalc() *GroupCalc {
|
|||
return baseInstance.GroupCalc
|
||||
}
|
||||
|
||||
func (baseInstance *BaseInstance) SetGroupName(name string) {
|
||||
baseInstance.GroupName = name
|
||||
}
|
||||
|
||||
func (baseInstance *BaseInstance) SetGroupFolded(folded bool) {
|
||||
baseInstance.GroupFolded = folded
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue