[change] componet action
This commit is contained in:
parent
0ae2698a45
commit
937e2033ad
1 changed files with 19 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue