mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-12-18 17:04:16 +08:00
chore: 依赖升级
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user