swiper



  • taro ui vue3 swiper 不能滚动?```
    code_text

    <swiper
          class="test-h"
          indicatorColor="#999"
          indicatorActiveColor="#333"
          current="current"
          :duration="duration"
          :interval="interval"
          :circular="isCircular"
          :autoplay="isAutoplay"
          :indicatorDots="hasIndicatorDots"
        >
          <swiper-item v-for="(item, idx) in imgUrls" :key="idx">
            <image :src="item" class="slide-image" />
          </swiper-item>
        </swiper>
    

    code_text

    data() {
        return {
          searchText: "",
          current: 1,
          duration: 500,
          interval: 5000,
          isCircular: false,
          isAutoplay: false,
          hasIndicatorDots: true,
          imgUrls: [
            "https://img10.360buyimg.com/babel/s700x360_jfs/t25855/203/725883724/96703/5a598a0f/5b7a22e1Nfd6ba344.jpg!q90!cc_350x180",
            "https://img11.360buyimg.com/babel/s700x360_jfs/t1/4776/39/2280/143162/5b9642a5E83bcda10/d93064343eb12276.jpg!q90!cc_350x180",
            "https://img14.360buyimg.com/babel/s700x360_jfs/t1/4099/12/2578/101668/5b971b4bE65ae279d/89dd1764797acfd9.jpg!q90!cc_350x180",
          ],
        };
      },

登录后回复