mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 12:47:57 +01:00
fix(form): provide typings for $el
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user