Carousel: fix autoplay props

pull/2326/head
Jikkai Xiao 2017-01-10 17:00:33 +08:00
parent 48996c6658
commit dfdef858d9
1 changed files with 2 additions and 2 deletions

View File

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