以前ionic3或者ionic4有ion-slide组件,但现在已经转移到swiper,最近测试发现了一些问题,测试代码如下
<swiper-container #swiper css-mode="true" [slidesPerView]="5" [modules]="swiperModules">
<swiper-slide>Slide 1</swiper-slide>
<swiper-slide>Slide 2</swiper-slide>
<swiper-slide>Slide 3</swiper-slide>
<swiper-slide>Slide 4</swiper-slide>
<swiper-slide>Slide 5</swiper-slide>
<swiper-slide>Slide 6</swiper-slide>
<swiper-slide>Slide 7</swiper-slide>
</swiper-container>
1、点击某个swiper-slide没有跳转
2、调用slideNext()和slidePrev()有效,但调用slideTo不起作用