panhui 5 лет назад
Родитель
Сommit
1e08f46b7b
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/pages/Home.vue

+ 2 - 3
src/pages/Home.vue

@@ -18,13 +18,12 @@
             <div class="swiper">
                 <swiper
                     autoplay
-                    :interval="interval"
-                    :duration="duration"
                     previous-margin="33px"
                     next-margin="33px"
                     class="swiper-home"
                     @change="current = $event.detail.current"
                     :current="current"
+                    circular
                 >
                     <block v-for="(item, index) in banners" :key="item.id">
                         <swiper-item :class="{ active: index === current }">
@@ -452,7 +451,7 @@ export default {
         ._swiper-item {
             padding: 7px 7px;
             box-sizing: border-box;
-            transition: all ease-in-out 0.3s;
+            transition: padding ease-in-out 0.3s;
             &.active {
                 padding: 0 7px;
             }