官网:https://github.com/ElemeFE/vue-infinite-scroll
npm install vue-infinite-scroll --save
在main.js中引入
import infiniteScroll from 'vue-infinite-scroll'
Vue.use(infiniteScroll)
vue插件
本项目是插件的使用example, 结合后台加载的完整实例
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.