mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(form): provide typings for $el
This commit is contained in:
@@ -196,7 +196,7 @@ provide(formOptionsInjectionKey, computed(() => ({
|
||||
validateOnInputDelay: props.validateOnInputDelay
|
||||
})))
|
||||
|
||||
defineExpose<Form<T>>({
|
||||
defineExpose<{ $el: HTMLFormElement | HTMLDivElement } & Form<T>>({
|
||||
validate: _validate,
|
||||
errors,
|
||||
|
||||
@@ -230,7 +230,7 @@ defineExpose<Form<T>>({
|
||||
},
|
||||
|
||||
disabled
|
||||
})
|
||||
} as { $el: HTMLFormElement | HTMLDivElement } & Form<T>)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user