Merge pull request #5326 from johnsonwong666/hotfix/fix_issue_5295

fix(stepper): fix decimal compare
This commit is contained in:
landluck 2023-04-17 20:06:37 +08:00 committed by GitHub
commit 2f80362b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,10 +103,10 @@ VantComponent({
this.data;
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) {