npm install awesome vue-awesome-swiper --save
import { swiper, swiperSlide } from "vue-awesome-swiper"; // 局部引入组件
import "swiper/dist/css/swiper.css"; //引入样式
npm install pull-to-refresh --save
import VuePullRefresh from 'vue-pull-refresh' //局部使用组件
components: {
VuePullRefresh
},
将要刷新的内容使用组件包裹,通过:on-refresh="onRefresh"触发下拉刷新时的事件
npm run build
npm run test
npm run lint