mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Stepper: fixed when step is a decimals sometimes (#283)
* fixed when step is a decimals sometimes * Update index.js
This commit is contained in:
parent
7d6f07bdfa
commit
90898271ec
@ -37,6 +37,8 @@ Component({
|
||||
} else if (type === 'plus') {
|
||||
stepper += step;
|
||||
}
|
||||
|
||||
if (stepper < this.data.min || stepper > this.data.max) return null;
|
||||
|
||||
this.triggerEvent('change', stepper);
|
||||
this.triggerEvent(type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user