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;
margin: 0 auto;
border-radius: 5px;
overflow: hidden;
.carouselImg {
display: block;
width: 100%;
height: 100%;
}
.my-swiper {
width: 100%;
height: 100%;
width: 350px;
height: 200px;
background-color: #fff;
.swiper-wrapper {
.swiper-slide {

View File

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