index.wxml 1.0 KB

1234567891011121314151617
  1. <view class="lin-image-picker__container l-class">
  2. <block wx:for="{{value}}" wx:key="index">
  3. <view class="lin-image-picker__item lin-image-picker__item--{{size}}" style="{{itemSizePercentage?'width:'+itemSizePercentage+'padding-bottom:'+itemSizePercentage:'xxx'}}">
  4. <image mut-bind:tap="onTapImage" data-image-index="{{index}}" src="{{item}}" mode="{{mode}}" class="lin-image-picker__image"/>
  5. <view mut-bind:tap="onTapRemove" class="lin-image-picker__remove" data-image-index="{{ index }}">
  6. <l-icon name="close" color="#ffffff" size="18"/>
  7. </view>
  8. </view>
  9. </block>
  10. <view wx:if="{{count-value.length>0}}" mut-bind:tap="onTapAdd" class="lin-image-picker__item lin-image-picker__item--add lin-image-picker__item--{{size}}" style="{{itemSizePercentage?'width:'+itemSizePercentage+'padding-bottom:'+itemSizePercentage:''}}">
  11. <view class="lin-image-picker__item-slot-wrapper">
  12. <slot/>
  13. </view>
  14. <image src="./image/add.png" class="lin-image-picker__image--add"/>
  15. </view>
  16. </view>