Skip to content

Commit 92831d1

Browse files
committed
Update AutoForm.vue
1 parent ebbe08c commit 92831d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/AutoForm.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ const formFields = ref()
144144
const formFieldsKey = ref(1)
145145
const elForm = ref()
146146
147-
defineExpose({ forceUpdate, props, setModel, formFields, submit, close })
148147
function forceUpdate() {
149148
formFieldsKey.value++ //required to force revalidation
150149
model.value = resolveModel()
@@ -197,6 +196,8 @@ const model = ref(resolveModel())
197196
const loading = computed(() => client.loading.value)
198197
const title = computed(() => props.heading != null ? props.heading : (metaType.value?.description || humanize(typeName.value)))
199198
199+
defineExpose({ forceUpdate, props, setModel, formFields, submit, close, model })
200+
200201
function newDto() {
201202
return typeof props.type == 'string' ? createDto(props.type) : props.type ? new props.type() : props.modelValue
202203
}

0 commit comments

Comments
 (0)