commit
e84d0988c9
1 changed files with 19 additions and 11 deletions
|
|
@ -33,17 +33,25 @@ type aliasActionDSL ActionDSL
|
||||||
|
|
||||||
// ActionDSL the component action DSL
|
// ActionDSL the component action DSL
|
||||||
type ActionDSL struct {
|
type ActionDSL struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Title string `json:"title,omitempty"`
|
Title string `json:"title,omitempty"`
|
||||||
Width int `json:"width,omitempty"`
|
Width int `json:"width,omitempty"`
|
||||||
Icon string `json:"icon,omitempty"`
|
Icon string `json:"icon,omitempty"`
|
||||||
Style string `json:"style,omitempty"`
|
Style string `json:"style,omitempty"`
|
||||||
Xpath string `json:"xpath,omitempty"`
|
Xpath string `json:"xpath,omitempty"`
|
||||||
DivideLine bool `json:"divideLine,omitempty"`
|
DivideLine bool `json:"divideLine,omitempty"`
|
||||||
ShowWhenAddAndView bool `json:"showWhenAddAndView,omitempty"`
|
ShowWhenAdd bool `json:"showWhenAdd,omitempty"`
|
||||||
Props PropsDSL `json:"props,omitempty"`
|
ShowWhenView bool `json:"showWhenView,omitempty"`
|
||||||
Confirm *ConfirmActionDSL `json:"confirm,omitempty"`
|
Props PropsDSL `json:"props,omitempty"`
|
||||||
Action ActionNodes `json:"action,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
|
type aliasActionNodes []ActionNode
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue