<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>