这个轮播图使用v-for循环遍历,逐个输出图片,但是没形成我想要的轮播图效果,我想要一个正常的轮播图,左右两边有按钮可以点击下一张的,然后下方需要指示点,每3秒自动切换一次

<template>
<div>
<swiper :options="swiperOptions">
<swiper-slide v-for="(item, index) in swiperList" :key="index">
<p>{{ item.title }}</p>
<img :src="item.img" alt="" width="200px">
</swiper-slide>
</swiper>
</div>
</template>
<script setup lang="ts">
import { Swiper, SwiperSlide } from "swiper/vue"
import axios from 'axios'
import { ref, reactive, onMounted } from 'vue'
const swiperList = ref([])
//组件加载后,调用服务器端接口
onMounted(() => {
axios.get("http://localhost:3000/banners").then((res) => {
console.log(res);
swiperList.value = res.data;
});
})
const swiperOptions = {
//轮播图的配置参数
slidesPerView: 1, //每个页面显示的图片数量
spaceBetween: 10, //图片之间的间隔
navigation: {
nextEl: ".swiper-button-next", //下一页按钮的样式选择器
prevEl: ".swiper-button-prev" //上一页按钮的样式选择器
}
}
</script>
<style lang="scss" scoped></style>