[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:
Aresn 2018-05-30 16:19:46 +08:00 committed by Yao
parent 7d6f07bdfa
commit 90898271ec

View File

@ -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);
}, },