Commit 655d89fe authored by 好多大米's avatar 好多大米 Committed by GitHub

Carousel: fix interval and scale bug (#20931)

parent 0418a471
......@@ -98,6 +98,7 @@
this.active = index === activeIndex;
const isVertical = parentDirection === 'vertical';
this.translate = this.calcTranslate(index, activeIndex, isVertical);
this.scale = 1;
}
this.ready = true;
},
......
......@@ -159,6 +159,11 @@ export default {
loop() {
this.setActiveItem(this.activeIndex);
},
interval() {
this.pauseTimer();
this.startTimer();
}
},
......
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