swiper 禁止滑动

<div class="swiper-container">
<swiper :style="'min-height:'+height+'px'" :current="active" duration="0" @change="swiperChange">
<swiper-item>

</swiper-item>

<swiper-item>

</swiper-item>
</swiper>
</div>

<style lang="less">
// 几大页面
.swiper-container{
 pointer-events: none;
}

posted @ 2021-06-04 15:33  Monroe_Yu  阅读(88)  评论(4编辑  收藏  举报