Compare commits

...

4 Commits

Author SHA1 Message Date
landluck
2f80362b7b
Merge pull request #5326 from johnsonwong666/hotfix/fix_issue_5295
fix(stepper): fix decimal compare
2023-04-17 20:06:37 +08:00
landluck
b879138508
Merge pull request #5327 from youzan/dependabot/npm_and_yarn/vm2-3.9.16
build(deps): bump vm2 from 3.9.15 to 3.9.16
2023-04-17 20:04:48 +08:00
dependabot[bot]
25ade8883b
build(deps): bump vm2 from 3.9.15 to 3.9.16
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.15 to 3.9.16.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.15...3.9.16)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 21:17:21 +00:00
johnsonwong666
88bd66c78e fix(stepper): fix decimal compare 2023-04-12 17:54:00 +08:00
2 changed files with 5 additions and 5 deletions

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) {

View File

@ -13234,9 +13234,9 @@ vite@^2.9.0:
fsevents "~2.3.2"
vm2@^3.9.8:
version "3.9.15"
resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.15.tgz#c544e6a9bc31e4e40d2e5f532342cf799ea56a6e"
integrity sha512-XqNqknHGw2avJo13gbIwLNZUumvrSHc9mLqoadFZTpo3KaNEJoe1I0lqTFhRXmXD7WkLyG01aaraXdXT0pa4ag==
version "3.9.16"
resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.16.tgz#0fbc2a265f7bf8b837cea6f4a908f88a3f93b8e6"
integrity sha512-3T9LscojNTxdOyG+e8gFeyBXkMlOBYDoF6dqZbj+MPVHi9x10UfiTAJIobuchRCp3QvC+inybTbMJIUrLsig0w==
dependencies:
acorn "^8.7.0"
acorn-walk "^8.2.0"