看源码后得到箭头有鼠标移入事件
用了最简单粗暴的方便给el-carousel-item 标签加上鼠标移入事件
调用源码中的清除时间函数的方法
autoplayHandler(index){
console.log(index,'autoplayHandler=========>',this.$refs.carousel);
this.$refs.carousel.pauseTimer ()
},
看源码后得到箭头有鼠标移入事件
用了最简单粗暴的方便给el-carousel-item 标签加上鼠标移入事件
调用源码中的清除时间函数的方法
autoplayHandler(index){
console.log(index,'autoplayHandler=========>',this.$refs.carousel);
this.$refs.carousel.pauseTimer ()
},