fix(stepper): fix decimal compare

This commit is contained in:
johnsonwong666 2023-04-12 17:54:00 +08:00
parent 588ba18b75
commit 88bd66c78e

View File

@ -103,10 +103,10 @@ VantComponent({
this.data; this.data;
if (type === 'plus') { if (type === 'plus') {
return disabled || disablePlus || currentValue >= max; return disabled || disablePlus || +currentValue >= +max;
} }
return disabled || disableMinus || currentValue <= min; return disabled || disableMinus || +currentValue <= +min;
}, },
onFocus(event: WechatMiniprogram.InputFocus) { onFocus(event: WechatMiniprogram.InputFocus) {