page scroller

vue-scroller使用

∥☆過路亽.° 提交于 2021-02-11 20:41:59
<template> <div class="page page-scroller"> < scroller class ="scroller" style ="padding-top: 0" :on -refresh="refresh" :on -infinite="infinite" ref ="my_scroller" > <div v- for ="(item, index) in items" class="row" :class="{'grey-bg': index % 2 == 0}" :key="index"> {{ item.name }}{{index}} </div> </scroller> </div> </template> <script> import Vue from 'vue' import VueScroller from 'vue-scroller' Vue.use(VueScroller) export default { name: 'PageScroller' , data () { return { pageSize: 5, // 分页大小 currentPageNo: 0, // 当前页码 items: [],     isEmpty: true, noData: false } }, mounted () { }, methods: