[change] componet action

This commit is contained in:
Max 2022-12-27 09:58:53 +08:00
parent 0ae2698a45
commit 937e2033ad

View file

@ -33,17 +33,25 @@ type aliasActionDSL ActionDSL
// ActionDSL the component action DSL
type ActionDSL struct {
ID string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Width int `json:"width,omitempty"`
Icon string `json:"icon,omitempty"`
Style string `json:"style,omitempty"`
Xpath string `json:"xpath,omitempty"`
DivideLine bool `json:"divideLine,omitempty"`
ShowWhenAddAndView bool `json:"showWhenAddAndView,omitempty"`
Props PropsDSL `json:"props,omitempty"`
Confirm *ConfirmActionDSL `json:"confirm,omitempty"`
Action ActionNodes `json:"action,omitempty"`
ID string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Width int `json:"width,omitempty"`
Icon string `json:"icon,omitempty"`
Style string `json:"style,omitempty"`
Xpath string `json:"xpath,omitempty"`
DivideLine bool `json:"divideLine,omitempty"`
ShowWhenAdd bool `json:"showWhenAdd,omitempty"`
ShowWhenView bool `json:"showWhenView,omitempty"`
Props PropsDSL `json:"props,omitempty"`
Confirm *ConfirmActionDSL `json:"confirm,omitempty"`
Action ActionNodes `json:"action,omitempty"`
Disabled *DisabledDSL `json:"disabled,omitempty"`
}
// DisabledDSL the action disabled
type DisabledDSL struct {
Bind string `json:"bind,omitempty"`
Value interface{} `json:"value,omitempty"` // string | array<string>
}
type aliasActionNodes []ActionNode