diff --git a/client/src/components/NiceForm.vue b/client/src/components/NiceForm.vue index f2aa438..f91aeb9 100644 --- a/client/src/components/NiceForm.vue +++ b/client/src/components/NiceForm.vue @@ -2,38 +2,60 @@ const props = defineModel<{ title: string - fields: { - key: string, - label: string, - component: () => Component, - props: any, - }[] + sections: { + title: string + fields: { + key: string, + label: string, + as: string, + props: any, + default: any, + enabled?: (values: Record) => Boolean, + rules?: (value: any) => true | string, + }[], + }[], + modelValue: any, }>(); -let { title, fields } = $(props); + +let { sections } = $(props);