uniapp waterfall 瀑布流底部空白问题
第一次使用uniapp的 waterfall 瀑布流组件,在使用过程中,发现运行后底部出现一大片和内容一样高度的空白,之后查阅资料发现,组件需要指定高度才行
下面贴出部分代码,方便其他人参考
<view class="body" v-bind:style="{ height: windowHeight + 'px' }">
<waterfall column-count="2" column-width="auto" column-gap="0dp" @loadmore="loadMore()">
<cell v-for="(item,index) in datalist">
onLoad() {
this.windowHeight = uni.getSystemInfoSync().windowHeight ;
},

浙公网安备 33010602011771号