mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-10 03:03:44 +08:00
表格排序器增加关联表支持和字段映射
This commit is contained in:
@@ -7,15 +7,14 @@ package form
|
||||
|
||||
// Sorter 排序器,兼容naiveUI
|
||||
type Sorter struct {
|
||||
ColumnKey string `json:"columnKey" dc:"排序字段"`
|
||||
Sorter bool `json:"sorter" dc:"是否需要排序"`
|
||||
Order interface{} `json:"order" dc:"排序方式 descend|ascend|false"`
|
||||
ColumnKey string `json:"columnKey" dc:"排序字段"`
|
||||
Order interface{} `json:"order" dc:"排序方式 descend|ascend|false"`
|
||||
}
|
||||
|
||||
type Sorters struct {
|
||||
Sorters []Sorter `json:"sorters" dc:"排序器"`
|
||||
Sorters []*Sorter `json:"sorters" dc:"排序器"`
|
||||
}
|
||||
|
||||
func (s *Sorters) GetSorters() []Sorter {
|
||||
func (s *Sorters) GetSorters() []*Sorter {
|
||||
return s.Sorters
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user