<u-loadmore :status="loadStatus" bg-color="#F8F8F8" :margin-top="20" :margin-bottom="20"></u-loadmore>
loadStatus: 'loadmore',
page: 1,
onReachBottom() {
if(this.page >= 3) return ;
this.status = 'loading';
this.page = ++ this.page;
setTimeout(() => {
this.list += 10;
if(this.page >= 3) this.status = 'nomore';
else this.status = 'loading';
}, 2000)
}
按照官方文档这么写的,为什么会没有效果呢