官网只有自动播放 没有无限循环播放 这怎么改下
<Carousel autoplay v-model="index">
<CarouselItem v-for="item in imgUrl" :key="index">
<div :style="{ background: 'url(' + item.imageURL + ')' }"></div>
</CarouselItem>
</Carousel>
export default {
props: ['imgUrl'],
data() {
return {
index: 0
}
},
created() {
},
computed: {
investorInfo() {
return this.$store.state.InvestorInfo
}
},
methods: {
changeIndex(index) {
}
},
mounted() {
}
官方例子,设置autoplay就自带循环切换了啊