diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62ee20f6ef..1226d5ec59 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19758,4 +19758,4 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - dev: true + dev: true \ No newline at end of file diff --git a/src/packages/input/input.taro.tsx b/src/packages/input/input.taro.tsx index 94a19495de..f79fbe0160 100644 --- a/src/packages/input/input.taro.tsx +++ b/src/packages/input/input.taro.tsx @@ -145,13 +145,11 @@ export const Input = forwardRef( trigger: InputFormatTrigger = 'onChange' ) => { let val = value - if (getEnv() === ENV_TYPE.WEB) { - if (type === 'number') { - val = formatNumber(val, false, true) - } - if (type === 'digit') { - val = formatNumber(val, true, true) - } + if (type === 'number') { + val = formatNumber(val, false, true) + } + if (type === 'digit') { + val = formatNumber(val, true, true) } if (formatter && trigger === formatTrigger) { val = formatter(val)