<template>
<view class="body">
<waterfall column-count="2" column-width="auto" column-gap="0dp">
<cell v-for="(item,index) in datalist" >
<text>{{item.title}}</text>
</cell>
</waterfall>
</view>
</template>
<script>
export default {
data() {
return {
datalist: [{
title:1
},{
title:2
},{
title:3
},{
title:4
},{
title:5
},{
title:6
},{
title:7
},{
title:8
},{
title:9
}]
}
}
}
</script>
<style>
.body{
background-color: #007AFF;
}
</style>
2***@qq.com (作者)
谢谢,解决这个问题,贴出部分代码,方便其他人参考
this.windowHeight = uni.getSystemInfoSync().windowHeight;
<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">
2020-08-12 11:10
景风
回复 2***@qq.com: 你好,我也遇到了,加了高度还是没解决,可以帮忙看看吗
<view v-bind:style="{ height: '500px' }">
<list class="myp-bg-page" ref="myp-list" :bounce="true" isSwiperList="true" style="width:750rpx;flex:1;height: 500px;" :loadmoreoffset="60" @loadmore="toGetAlbums">
2021-06-24 15:11