<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属性,不然上拉加载无法使用。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-06-15
  • 2021-12-09
猜你喜欢
  • 2021-11-28
  • 2021-12-14
  • 2021-12-26
  • 2021-12-09
  • 2021-05-09
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案