mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-09-26 20:11:11 +08:00
chore: 优化代码
This commit is contained in:
@@ -5,7 +5,6 @@ import "github.com/quarkcms/quark-go/v2/pkg/app/admin/component/component"
|
||||
type Component struct {
|
||||
component.Element
|
||||
Title string `json:"title"`
|
||||
BodyStyle interface{} `json:"bodyStyle"`
|
||||
Centered bool `json:"centered"`
|
||||
Closable bool `json:"closable"`
|
||||
DestroyOnClose bool `json:"destroyOnClose"`
|
||||
@@ -13,7 +12,6 @@ type Component struct {
|
||||
Keyboard bool `json:"keyboard"`
|
||||
Mask bool `json:"mask"`
|
||||
MaskClosable bool `json:"maskClosable"`
|
||||
MaskStyle interface{} `json:"maskStyle"`
|
||||
Open bool `json:"open"`
|
||||
Width int `json:"width"`
|
||||
ZIndex int `json:"zIndex"`
|
||||
@@ -54,13 +52,6 @@ func (p *Component) SetTitle(title string) *Component {
|
||||
return p
|
||||
}
|
||||
|
||||
// Modal body 样式
|
||||
func (p *Component) SetBodyStyle(style interface{}) *Component {
|
||||
p.BodyStyle = style
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
// 容器控件里面的内容
|
||||
func (p *Component) SetBody(body interface{}) *Component {
|
||||
p.Body = body
|
||||
@@ -117,13 +108,6 @@ func (p *Component) SetMaskClosable(maskClosable bool) *Component {
|
||||
return p
|
||||
}
|
||||
|
||||
// 遮罩样式
|
||||
func (p *Component) SetMaskStyle(style map[string]interface{}) *Component {
|
||||
p.MaskStyle = style
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
// 对话框是否可见
|
||||
func (p *Component) SetOpen(open bool) *Component {
|
||||
p.Open = open
|
||||
|
Reference in New Issue
Block a user