diff --git a/src/runtime/components/forms/Input.vue b/src/runtime/components/forms/Input.vue index 88e907b107..c597a42bdd 100644 --- a/src/runtime/components/forms/Input.vue +++ b/src/runtime/components/forms/Input.vue @@ -156,7 +156,7 @@ export default defineComponent({ } const onInput = (event: InputEvent) => { - emit('update:modelValue', (event.target as any).value) + emit('update:modelValue', (event.target as HTMLInputElement).value) } onMounted(() => { diff --git a/src/runtime/components/forms/Select.vue b/src/runtime/components/forms/Select.vue index ffc3b8af62..256f315398 100644 --- a/src/runtime/components/forms/Select.vue +++ b/src/runtime/components/forms/Select.vue @@ -173,7 +173,7 @@ export default defineComponent({ const ui = computed>(() => defu({}, props.ui, appConfig.ui.select)) const onInput = (event: InputEvent) => { - emit('update:modelValue', (event.target as any).value) + emit('update:modelValue', (event.target as HTMLInputElement).value) } const guessOptionValue = (option: any) => { diff --git a/src/runtime/components/forms/Textarea.vue b/src/runtime/components/forms/Textarea.vue index 5a387c7e11..496d9b61de 100644 --- a/src/runtime/components/forms/Textarea.vue +++ b/src/runtime/components/forms/Textarea.vue @@ -143,7 +143,7 @@ export default defineComponent({ const onInput = (event: InputEvent) => { autoResize() - emit('update:modelValue', (event.target as any).value) + emit('update:modelValue', (event.target as HTMLInputElement).value) } watch(() => props.modelValue, () => {