fix: update to fix type issues (#151)

This commit is contained in:
Daniel Roe
2023-05-04 16:24:22 +01:00
committed by GitHub
parent b55a7c58f6
commit 11e00a10e4
6 changed files with 41 additions and 40 deletions

View File

@@ -7,7 +7,7 @@
:required="required"
:disabled="disabled"
:class="selectClass"
@input="onInput(($event.target as any).value)"
@input="onInput"
>
<template v-for="(option, index) in normalizedOptionsWithPlaceholder">
<optgroup
@@ -127,8 +127,8 @@ export default defineComponent({
const ui = computed<Partial<typeof appConfig.ui.select>>(() => defu({}, props.ui, appConfig.ui.select))
const onInput = (value: string) => {
emit('update:modelValue', value)
const onInput = (event: InputEvent) => {
emit('update:modelValue', (event.target as any).value)
}
const guessOptionValue = (option: any) => {