From 4211d347b22eb72c7a547ec7a8d9977b371c2622 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 16 Dec 2022 10:17:02 +0800 Subject: [PATCH] [add] DivideLine --- widgets/component/types.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/widgets/component/types.go b/widgets/component/types.go index b5bcbdd7..ea92bb0e 100644 --- a/widgets/component/types.go +++ b/widgets/component/types.go @@ -32,15 +32,17 @@ 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"` - 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"` + ShowWhenAddAndView bool `json:"showWhenAddAndView,omitempty"` + Props PropsDSL `json:"props,omitempty"` + Confirm *ConfirmActionDSL `json:"confirm,omitempty"` + Action ActionNodes `json:"action,omitempty"` } type aliasActionNodes []ActionNode