####注意:以下是版本4.1.1
##hub地址:
https://github.com/surmon-china/vue-awesome-swiper/tree/v4.1.1
- 首先执行命令
npm install [email protected] --save
- 在main.js中添加全局配置,当然也可以 是局部添加
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)
- 创建一个组件写入模板