Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 875 Bytes

README.md

File metadata and controls

39 lines (23 loc) · 875 Bytes

vue的无限滚动加载

Image

安装

官网: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-infinite-scroll

vue插件
本项目是插件的使用example, 结合后台加载的完整实例

Build Setup

# 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.