1. 第三方插件
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/74cfb8640cbf99e0345e65476d52bb17.png)
https://github.com/surmon-china/vue-awesome-swiper
npm install swiper vue-awesome-swiper --save
或者yarn add swiper vue-awesome-swiper
2. 全局注册
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/2c3e6a6664f14838f41bc7ee5b291d27.png)
注明! 全局配置我写在了main.js里面了
3. 局部注册
我没用过
import {
Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
impo