具体关键代码如下:
<swiper class="swiperBar" display-multiple-items="3" next-margin="100rpx">
<swiper-item v-for="item in itemArr">
<view class="grid-item-box" @click="change(item.status)">
<view class="grid_num">{{ item.num }}</view>
<view class="grid_text">{{ item.text}}</view>
</view>
</swiper-item>
</swiper>
主要参数设置:display-multiple-items="3"
出错效果如下: