vue3 swiper6.8快速使用
Posted 嘴巴嘟嘟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue3 swiper6.8快速使用相关的知识,希望对你有一定的参考价值。
"swiper": "^6.8.2",
然后直接界面使用
<template>
<div class="main">
<swiper
class="swiper-warp"
:autoplay='
"delay": 2500,
"disableOnInteraction": false
'
:pagination=' "clickable": true '
:scrollbar="draggable: true"
>
<!-- :direction= "vertical" -->
<swiper-slide class="swiper-container"> 1</swiper-slide>
<swiper-slide class="swiper-container"> 1</swiper-slide>
</swiper>
</div>
</template>
<script>
import 'swiper/swiper.scss'
import Swiper, SwiperSlide from 'swiper/vue'
import SwiperCore, Autoplay, Pagination from 'swiper'
import 'swiper/components/pagination/pagination.scss'
import ref, onMounted, reactive, toRefs from 'vue'
SwiperCore.use([Autoplay, Pagination])
export default
components:
Swiper,
SwiperSlide
,
setup ()
return
showTab,
tabValue
</script>
以上是关于vue3 swiper6.8快速使用的主要内容,如果未能解决你的问题,请参考以下文章