Commit f6b81241 authored by 周宏民's avatar 周宏民

fix: 修改数据滚动

parent 877085bc
......@@ -79,7 +79,7 @@ const DataCarousel = ({ list, itemHeight, gap, renderItem, renderGap, config, au
swiper.$el[0].addEventListener('mouseover', () => swiper.autoplay.stop());
//鼠标移开后继续自动滚屏效果
swiper.$el[0].addEventListener('mouseleave', () => {
listData.length > 1 ? swiper.autoplay.start() : '';
listData.length > 1 && autoplay ? swiper.autoplay.start() : '';
});
}}
{...config}
......
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