Explorar o código

Merge pull request #2326 from jikkai/dev

Carousel: fix autoplay props
baiyaaaaa %!s(int64=8) %!d(string=hai) anos
pai
achega
e89eecc17e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/carousel/src/main.vue

+ 2 - 2
packages/carousel/src/main.vue

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