From 9b0e7e350e7b3f77053d8f1d5425c6717b83447e Mon Sep 17 00:00:00 2001 From: huangzhen Date: Fri, 15 Nov 2024 18:07:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20@=E4=BC=98=E5=8C=96=E8=BD=AE=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/templates/cmsList/index.scss | 5 +++-- src/views/templates/cmsList/index.vue | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/templates/cmsList/index.scss b/src/views/templates/cmsList/index.scss index fd95139..3c3fe6b 100644 --- a/src/views/templates/cmsList/index.scss +++ b/src/views/templates/cmsList/index.scss @@ -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 { diff --git a/src/views/templates/cmsList/index.vue b/src/views/templates/cmsList/index.vue index 588f449..f325338 100644 --- a/src/views/templates/cmsList/index.vue +++ b/src/views/templates/cmsList/index.vue @@ -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"