mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-28 17:42:04 +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
@ -38,6 +38,8 @@ Component({
|
|||||||
stepper += step;
|
stepper += step;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stepper < this.data.min || stepper > this.data.max) return null;
|
||||||
|
|
||||||
this.triggerEvent('change', stepper);
|
this.triggerEvent('change', stepper);
|
||||||
this.triggerEvent(type);
|
this.triggerEvent(type);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user