<div class="list-wrapper unique-container">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
class="list"
@load="onLoad"
>
<hdbm-item
v-for="item in list"
:key="item.id"
></hdbm-item>
</van-list>
</div>
//设置定高,且溢处隐藏,y轴滚动,才能出发下拉更多机制(特别使用页面内设滚动区域)
.list-wrapper {
flex: 1;//定高
overflow: hidden;
overflow-y: auto;
}
标签:loading,vant,list,finished,定高,组件,overflow From: https://www.cnblogs.com/qieting/p/18166273