waterfall-layout
waterfall-layout copied to clipboard
添加业务代码后,无法根据计算图片高度,求解
<waterfall custom-class="waterfall-box" loading="true" isAllLoaded="true"> <waterfall-item custom-class="product-item-box" wx:for="{{list}}" wx:key="index"> <view > <image src="{{item.img_url}}" mode="aspectFill" class="round-small" ></image> <view>{{item.title}}</view> </view> </waterfall-item> </waterfall>
如果 mode="widthFix"的时候,就会出现一些不知名的间距,还是没达到需要的效果