官方git:https://github.com/surmon-china/vue-awesome-swiper
大坑,安装vue-awesome-swiper还需要安装swiper,并且要安装对应的版本。
VUE2开发可以用这两个版本:
"swiper": "^5.3.6", "vue-awesome-swiper": "^4.1.0",
npm install [email protected] --save npm install [email protected] --save
main.js:
import VueAwesomeSwiper from 'vue-awesome-swiper' import 'swiper/css/swiper.css' Vue.use(VueAwesomeSwiper)
标签:vue,4.1,awesome,import,save,swiper From: https://www.cnblogs.com/bigffish/p/16850763.html