Swiper更新参数

swiperInstance.update({
        slidesPerView: status == "pc" ? 1.354 : 1.253,
        coverflowEffect:
          status == "pc"
            ? {
                rotate: 0,
                stretch: "34%",
                depth: 841,
                // modifier: 2,
                slideShadows: false,
              }
            : {
                rotate: 0,
                stretch: "34%",
                depth: 500,
                // modifier: 2,
                slideShadows: false,
              },
      });

 

posted @ 2022-07-04 12:42  SimoonJia  阅读(376)  评论(0编辑  收藏  举报