<div :style="{height: contentHeight}">
        <van-list
                v-model="listloading"
                :finished="listfinished"
                finished-text="亲,我是有底线的"
                v-on:load="onLoad"
                :immediate-check="flagimm"
                :offset="50">
            <div v-for="(item,index) in addlist" v-bind:key="index">
                ...
            </div>
        </van-list>
</div>        
data:{
  contentHeight: 0,    
}
mounted(){
  this.contentHeight = document.documentElement.clientHeight - 66 - 40 + "px";
},

也许要加:

html,body {
height: 100%;
}

相关文章:

  • 2021-12-31
  • 2021-11-22
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-03
  • 2021-09-07
  • 2021-12-12
  • 2021-12-21
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案