fix(form): provide typings for $el

This commit is contained in:
Romain Hamel
2024-11-08 11:48:32 +01:00
parent 503f701c7e
commit 3a56de3be0

View File

@@ -196,7 +196,7 @@ provide(formOptionsInjectionKey, computed(() => ({
validateOnInputDelay: props.validateOnInputDelay validateOnInputDelay: props.validateOnInputDelay
}))) })))
defineExpose<Form<T>>({ defineExpose<{ $el: HTMLFormElement | HTMLDivElement } & Form<T>>({
validate: _validate, validate: _validate,
errors, errors,
@@ -230,7 +230,7 @@ defineExpose<Form<T>>({
}, },
disabled disabled
}) } as { $el: HTMLFormElement | HTMLDivElement } & Form<T>)
</script> </script>
<template> <template>