Skip to content

Commit

Permalink
style(Swiper): 更改废除的 API,样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Oct 21, 2024
1 parent 3fd0732 commit 5477250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions web/src/views/features/swiper/modules/thumbnail-swiper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const setThumbsSwiper = (swiper: SwiperClass) => {
.swiper-slide {
height: 100%;
opacity: 0.4;
transition: 0.3s all;
cursor: pointer;
}
.swiper-slide-thumb-active {
opacity: 1;
Expand Down
4 changes: 2 additions & 2 deletions web/src/views/features/swiper/modules/visual-swiper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const setTransition = (swiper: SwiperClass, transition: number) => {
slides-per-view="auto"
centered-slides
loop
:looped-slides="5"
:loop-additional-slides="5"
autoplay
navigation
:modules="[Navigation, Autoplay, Pagination]"
Expand All @@ -58,7 +58,7 @@ const setTransition = (swiper: SwiperClass, transition: number) => {
@set-transition="setTransition"
>
<SwiperSlide v-for="i in 8" :key="i" :style="{ width: '600px', height: '450px' }">
<img :src="imgs[i - 1]" class="slide-inner h-full w-full object-cover" />
<img :src="imgs[i - 1]" class="h-full w-full object-cover" />
</SwiperSlide>
</Swiper>
</template>

0 comments on commit 5477250

Please sign in to comment.