|
|
@ -226,6 +226,14 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share |
|
|
|
progress.value = false |
|
|
|
progress.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const clearForm = async () => { |
|
|
|
|
|
|
|
formResetHook.trigger() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
additionalState.value = {} |
|
|
|
|
|
|
|
formState.value = {} |
|
|
|
|
|
|
|
v$.value?.$reset() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** reset form if show_blank_form is true */ |
|
|
|
/** reset form if show_blank_form is true */ |
|
|
|
watch(submitted, (nextVal) => { |
|
|
|
watch(submitted, (nextVal) => { |
|
|
|
if (nextVal && sharedFormView.value?.show_blank_form) { |
|
|
|
if (nextVal && sharedFormView.value?.show_blank_form) { |
|
|
@ -261,6 +269,7 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share |
|
|
|
loadSharedView, |
|
|
|
loadSharedView, |
|
|
|
columns, |
|
|
|
columns, |
|
|
|
submitForm, |
|
|
|
submitForm, |
|
|
|
|
|
|
|
clearForm, |
|
|
|
progress, |
|
|
|
progress, |
|
|
|
meta, |
|
|
|
meta, |
|
|
|
validators, |
|
|
|
validators, |
|
|
|