1、安装swiper
rush:xhtml;">
npm install swiper@3.4.1 --save-dev
2、引用组件
rush:xhtml;">
import Swiper from 'swiper';
import 'swiper/dist/css/swiper.min.css';
rush:xhtml;">
1、安装swiper
2、引用组件
4、初始化组件,并设置参数
5、搞定,ok
以上这篇vue2.0使用swiper组件实现轮播的示例代码就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程之家。