<div style="height:100vh;overflow: scroll;">
<mt-loadmore :top-method="loadTop" :bottom-method="loadBottom" :bottom-all-loaded="allLoaded" ref="loadmore"
bottomPullText="上拉加载更多">
<ul>
<li v-for="(item,index) in lists" style="height:40px;">{{ item }}</li>
</ul>
</mt-loadmore>
</div>
1.一定要给<mt-loadmore>的父元素添加overflow:scroll属性,不然上拉加载无法使用。