Commit e89eecc1 authored by baiyaaaaa's avatar baiyaaaaa Committed by GitHub

Merge pull request #2326 from jikkai/dev

Carousel: fix autoplay props
parents 48996c66 dfdef858
...@@ -65,7 +65,7 @@ export default { ...@@ -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 { ...@@ -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);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment