[bugfix] Swipe: autoplay not stop when value set to 0 (#660)

This commit is contained in:
neverland 2018-03-01 19:03:55 +08:00 committed by GitHub
parent 8641701609
commit 39cdaf0907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,12 @@ export default create({
initialSwipe() {
this.initialize();
},
autoplay(autoplay) {
if (!autoplay) {
clearTimeout(this.timer);
}
}
},