From 3519d5884926835c1ccf80fe54f20438888ccaaa Mon Sep 17 00:00:00 2001 From: Marvin <63292605+yi-boide@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:07:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(input-number):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=97=B6=E6=9C=AA=E8=A7=A6=E5=8F=91=20change?= =?UTF-8?q?=20=E4=BA=8B=E4=BB=B6=E9=97=AE=E9=A2=98=20(#2903)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #2880 --- src/packages/__VUE/inputnumber/index.taro.vue | 1 + src/packages/__VUE/inputnumber/index.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/packages/__VUE/inputnumber/index.taro.vue b/src/packages/__VUE/inputnumber/index.taro.vue index c1b7925cd2..d7bfa1378a 100644 --- a/src/packages/__VUE/inputnumber/index.taro.vue +++ b/src/packages/__VUE/inputnumber/index.taro.vue @@ -98,6 +98,7 @@ export default create({ const change = (event: Event) => { const input = event.target as HTMLInputElement; emit('update:modelValue', input.value, event); + emit('change', input.value, event); }; const emitChange = (value: string | number, event: Event) => { let output_value: number | string = fixedDecimalPlaces(value); diff --git a/src/packages/__VUE/inputnumber/index.vue b/src/packages/__VUE/inputnumber/index.vue index bab765659d..d2e91638cd 100644 --- a/src/packages/__VUE/inputnumber/index.vue +++ b/src/packages/__VUE/inputnumber/index.vue @@ -93,6 +93,7 @@ export default create({ const change = (event: Event) => { const input = event.target as HTMLInputElement; emit('update:modelValue', input.value, event); + emit('change', input.value, event); }; const emitChange = (value: string | number, event: Event) => { let output_value: number | string = fixedDecimalPlaces(value);