index.wxml 1.3 KB

123456789101112131415
  1. <wux-animation-group wux-class="{{ prefixCls }}" in="{{ in }}" classNames="{{ classNames }}">
  2. <swiper class="{{ classes.swiper }}" indicator-dots="{{ indicatorDots }}" indicator-color="{{ indicatorColor }}" indicator-active-color="{{ indicatorActiveColor }}" autoplay="{{ autoplay }}" interval="{{ interval }}" duration="{{ duration }}" circular="{{ circular }}" vertical="{{ vertical }}" current="{{ current }}" bindchange="onChange" wx:if="{{ in && images.length }}">
  3. <block wx:for="{{ images }}" wx:key="index">
  4. <swiper-item class="{{ classes.item }}">
  5. <image class="{{ classes.img }}" mode="aspectFit" src="{{ item.image }}" data-index="{{ index }}" data-touch="{{ item.touch }}" bindtap="onTap" bindtouchstart="onTouchStart" bindtouchmove="onTouchMove" bindtouchend="onTouchEnd" style="transform: scale({{ item.touch.scale }}); transition: {{ transition || 'none' }}"></image>
  6. <view class="{{ classes.remark }} {{ current === index ? prefixCls + '__remark--active' : '' }}" wx:if="{{ item.remark }}">{{ item.remark }}</view>
  7. </swiper-item>
  8. </block>
  9. </swiper>
  10. <view class="{{ classes.opr }}" wx:if="{{ showDelete }}" bindtap="onDelete">
  11. <view class="{{ classes.del }}">
  12. <view class="{{ classes.icon }}"></view>
  13. </view>
  14. </view>
  15. </wux-animation-group>