mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-09-26 20:11:11 +08:00
15 lines
327 B
Go
15 lines
327 B
Go
package metrics
|
|
|
|
import (
|
|
"github.com/quarkcms/quark-go/pkg/component/admin/descriptions"
|
|
)
|
|
|
|
type AdminDescriptions struct {
|
|
AdminMetrics
|
|
}
|
|
|
|
// 包含组件的结果
|
|
func (p *AdminDescriptions) Result(value interface{}) *descriptions.Component {
|
|
return (&descriptions.Component{}).Init().SetTitle(p.Title).SetItems(value)
|
|
}
|