chore: 依赖升级

This commit is contained in:
ZiuChen
2024-04-02 12:17:35 +08:00
parent d1f2269fbe
commit 73252a5728
3 changed files with 740 additions and 894 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="img-slider">
<Swiper :modules="modules" autoplay loop>
<Swiper autoplay loop>
<template v-for="{ src, alt } of imgSliderList" :key="src">
<SwiperSlide>
<img :src="src" :alt="alt" />
@@ -12,7 +12,6 @@
<script setup lang="ts">
import { PropType } from 'vue'
import { Autoplay } from 'swiper'
import { Swiper, SwiperSlide } from 'swiper/vue'
import type { ImgSliderList } from '../types'
import 'swiper/css'
@@ -23,6 +22,4 @@ defineProps({
required: true
}
})
const modules = [Autoplay]
</script>