update @优化轮播

This commit is contained in:
huangzhen 2024-11-15 18:07:49 +08:00
parent b2180a5f3c
commit 9b0e7e350e
2 changed files with 4 additions and 2 deletions

View File

@ -24,14 +24,15 @@
height: 200px; height: 200px;
margin: 0 auto; margin: 0 auto;
border-radius: 5px; border-radius: 5px;
overflow: hidden;
.carouselImg { .carouselImg {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.my-swiper { .my-swiper {
width: 100%; width: 350px;
height: 100%; height: 200px;
background-color: #fff; background-color: #fff;
.swiper-wrapper { .swiper-wrapper {
.swiper-slide { .swiper-slide {

View File

@ -13,6 +13,7 @@
v-else-if="pageData.length" v-else-if="pageData.length"
:slides-per-view="3" :slides-per-view="3"
:space-between="8" :space-between="8"
:touchRatio="0.6"
:loop="pageData.length >=3" :loop="pageData.length >=3"
:loopAdditionalSlides="2" :loopAdditionalSlides="2"
:centered-slides="true" :centered-slides="true"