fix sql
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
:size="props.size"
|
||||
:type="props.type"
|
||||
class=""
|
||||
@input="handlerChange"
|
||||
@change="handlerChange"
|
||||
/>
|
||||
<a-input
|
||||
@@ -27,6 +28,7 @@
|
||||
:inputmode="props.inputmode"
|
||||
:pattern="props.pattern"
|
||||
class=""
|
||||
@input="handlerChange"
|
||||
@change="handlerChange"
|
||||
/>
|
||||
</div>
|
||||
@@ -89,8 +91,9 @@ function normalizeValue(value: unknown) {
|
||||
return normalized
|
||||
}
|
||||
|
||||
const handlerChange = (e: any) => {
|
||||
const normalized = normalizeValue(e.target.value)
|
||||
const handlerChange = (e: Event | string) => {
|
||||
const raw = typeof e === 'string' ? e : (e.target as HTMLInputElement | null)?.value
|
||||
const normalized = normalizeValue(raw)
|
||||
emits('update:value', normalized)
|
||||
emits('onchange', normalized)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user