<list fixFreezing class="list" :pagingEnabled="true" :loadmoreoffset="100" :show-scrollbar="false">
<cell v-for="(item, index) in list" :key="item">
<waterfall fixFreezing class="waterfall">
<cell>
<view class="box">
<view class="box-main" :style="mainStyle">
{{item}}
</view>
<view class="box-title" :style="titleStyle">
{{item}}
</view>
<view class="box-info" :style="infoStyle">
{{item}}
</view>
</view>
</cell>
</waterfall>
</cell>
</list>
data() {
return {
list: [1, 2],
itemStyle: {
height: 0,
width: "750rpx",
},
boxStyle: {
height: 0,
width: "750rpx",
},
mainStyle: {
height: 0,
width: "750rpx",
},
titleStyle: {
height: 0,
width: "750rpx",
},
infoStyle: {
height: 0,
width: "750rpx",
},
};
},
components: {
myList
},
onLoad() {
const height = uni.getSystemInfoSync().windowHeight;
this.itemStyle.height = height;
this.boxStyle.height = height;
this.mainStyle.height = height - 500;
this.titleStyle.height = height - 50;
this.infoStyle.height = height - 50;
},
0 个回复