<div class="swiper-wrap">
<Swiper v-if="list2.length > 0" style="margin-top: 10px" :options="swiperOptions2">
<SwiperSlide v-for="(item, index) in list2" :key="index" :virtualIndex="index">
<div class="swiper-card" @click="toLink(item.linkUrl)">
<img :src="item.imageUrl ?? CZYLOG" alt="" :class="!item.imageUrl ? 'logo' : ''" />
</div>
</SwiperSlide>
</Swiper>
</div>
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/bundle";
import SwiperCore, { Autoplay } from "swiper";
SwiperCore.use([Autoplay]);
swiperOptions2: {
slidesPerView: "auto",
loop: true,
speed: 1500,
direction: "horizontal",
spaceBetween: 10,
autoplay: true,
disableOnInteraction: false,
stopOnLastSlide: false,
autoplay: {
delay: 0,
reverseDirection: true,
pauseOnMouseEnter: true,
stopOnLastSlide: false,
disableOnInteraction: false,
},
.swiper-wrap {
width: 100%;
overflow: hidden;
::v-deep .swiper-wrapper {
.swiper-slide {
width: auto;
}
transition-timing-function: linear !important;
}
}