From aff27840ae4afc20769d448ee9c564ac507ab915 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 6 Feb 2024 14:42:42 +0800 Subject: [PATCH] Add FrameDSL to ViewLayoutDSL --- widgets/form/types.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/widgets/form/types.go b/widgets/form/types.go index c92f33e5..a5b194ac 100644 --- a/widgets/form/types.go +++ b/widgets/form/types.go @@ -75,6 +75,13 @@ type FieldsDSL struct { type ViewLayoutDSL struct { Props component.PropsDSL `json:"props,omitempty"` Sections []SectionDSL `json:"sections,omitempty"` + Frame FrameDSL `json:"frame,omitempty"` +} + +// FrameDSL layout.form.frame +type FrameDSL struct { + URL string `json:"url,omitempty"` + Params map[string]string `json:"params,omitempty"` } // SectionDSL layout.form.sections[*]