Merge pull request #2326 from jikkai/dev

Carousel: fix autoplay props
This commit is contained in:
baiyaaaaa 2017-01-10 17:07:57 +08:00 committed by GitHub
commit e89eecc17e

View File

@ -65,7 +65,7 @@ export default {
type: String, type: String,
default: 'hover' default: 'hover'
}, },
autoPlay: { autoplay: {
type: Boolean, type: Boolean,
default: true default: true
}, },
@ -168,7 +168,7 @@ export default {
}, },
startTimer() { startTimer() {
if (this.interval <= 0 || !this.autoPlay) return; if (this.interval <= 0 || !this.autoplay) return;
this.timer = setInterval(this.playSlides, this.interval); this.timer = setInterval(this.playSlides, this.interval);
}, },