vue 前端轮播图分页和数据处理

 


 

 

 


<
el-carousel trigger="click" class="gwbox-carouselBox left-sub2-carouselBox" :autoplay="false" > <el-carousel-item class="gwbox-carouselBox-child" v-for="item in Math.ceil(gwlist0.length / 6)" :key="item" > <div v-for="item in gwlist0.slice((item - 1) * 6, item * 6)" class="gwbox-carouselBox-child-sub" > <p class="num"> {{ item.bed }} <span></span> </p> <p>{{ item.name }}</p> </div> </el-carousel-item> </el-carousel>

 

posted @ 2021-07-23 10:25  abcByme  阅读(520)  评论(0编辑  收藏  举报