EP-WachatApp/eaterplanet_ecommerce/moduleA/components/masonry/masonry.wxml

17 lines
625 B
Plaintext
Raw Normal View History

2023-03-24 11:24:28 +08:00
<view class="masonry-list">
<view class="masonry-list-left" style="{{ 'margin-right:' + intervalWidth }}">
<view id="left-col-inner">
<block wx:for="{{items}}" wx:key="id">
<masonry-item wx:if="{{item.columnPosition === 'left'}}" item="{{item}}" bind:needAuth="needAuth"></masonry-item>
</block>
</view>
</view>
<view class="masonry-list-right">
<view id="right-col-inner">
<block wx:for="{{items}}" wx:key="id">
<masonry-item wx:if="{{item.columnPosition === 'right'}}" item="{{item}}" bind:needAuth="needAuth"></masonry-item>
</block>
</view>
</view>
</view>