diff --git a/client/src/components/NiceForm.vue b/client/src/components/NiceForm.vue index f91aeb9..34d2008 100644 --- a/client/src/components/NiceForm.vue +++ b/client/src/components/NiceForm.vue @@ -15,14 +15,16 @@ const props = defineModel<{ }[], }[], modelValue: any, + submit: (value: any) => boolean, + discard: () => void, }>(); -let { sections } = $(props); +let { sections, submit, discard } = $(props); - + {{ section.title }} @@ -35,17 +37,39 @@ let { sections } = $(props); + + + Submit + + Discard + + {{ values }}
{{ values }}