Skip to content

Commit

Permalink
Update AutoForm.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Aug 8, 2024
1 parent ebbe08c commit 92831d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AutoForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ const formFields = ref()
const formFieldsKey = ref(1)
const elForm = ref()
defineExpose({ forceUpdate, props, setModel, formFields, submit, close })
function forceUpdate() {
formFieldsKey.value++ //required to force revalidation
model.value = resolveModel()
Expand Down Expand Up @@ -197,6 +196,8 @@ const model = ref(resolveModel())
const loading = computed(() => client.loading.value)
const title = computed(() => props.heading != null ? props.heading : (metaType.value?.description || humanize(typeName.value)))
defineExpose({ forceUpdate, props, setModel, formFields, submit, close, model })
function newDto() {
return typeof props.type == 'string' ? createDto(props.type) : props.type ? new props.type() : props.modelValue
}
Expand Down

0 comments on commit 92831d1

Please sign in to comment.