@ederzeel/nuxt-schema-form-nightly 0.1.0-29079172.693cbb7 → 0.1.0-29080067.4817bc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,6 @@ async function onSubmit(_event: unknown) {
21
21
  }
22
22
 
23
23
  const formValidationSchema = computed(() => {
24
- if (props?.options == null) return {}
25
24
  return convertToYup(props.schema, props?.options?.jsonSchemaYupTransfromer ?? {})
26
25
  })
27
26
 
@@ -55,6 +54,10 @@ const validateFields = async (fields: string[]) => {
55
54
  const submit = () => {
56
55
  formRef.value.submit()
57
56
  }
57
+
58
+ defineExpose({
59
+ submit
60
+ })
58
61
  </script>
59
62
 
60
63
  <template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ederzeel/nuxt-schema-form-nightly",
3
- "version": "0.1.0-29079172.693cbb7",
3
+ "version": "0.1.0-29080067.4817bc1",
4
4
  "description": "A runtime form generator for nuxt",
5
5
  "type": "module",
6
6
  "exports": {