赞
踩
参考:https://zhuanlan.zhihu.com/p/475291877
“是否开启无限滚动”的属性:infinite
解决方法: 给a-carousel组件加上 :infinite=“false”
<a-carousel ref="carouselRef" autoplay :after-change="handleAfterChange" :infinite="false">
<div v-for="(item, index) in carouselCover" :key="index" style="width: 590px; height: 400px">
<img :src="item.coverUrl" style="display: block; width: 590px; height: 400px" />
</div>
</a-carousel>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。