目录
(1)问题说明
基本上是出了问题swiper3.1.3版本的,而且目前6.0版本使用也有问题。
请安装swiper:5.3.6版本,
安装插件前要先去掉之前的vue-awesome-swiper,不然不更新已经存在的版本且对不上版本号
(2)插件安装
npm install swiper@^5.3.6 vue-awesome-swiper --save-dev
需要同时安装swiper和vue-awesome-swiper两个插件。
(3)局部用法:
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
export default {
components: { Swiper, SwiperSlide }
}