index.wxml 599 B

1234567891011121314151617181920
  1. <view
  2. class="van-swipe-cell custom-class"
  3. data-key="cell"
  4. catchtap="onClick"
  5. bindtouchstart="startDrag"
  6. catchtouchmove="{{ catchMove ? 'noop' : '' }}"
  7. capture-bind:touchmove="onDrag"
  8. bindtouchend="endDrag"
  9. bindtouchcancel="endDrag"
  10. >
  11. <view style="{{ wrapperStyle }}">
  12. <view wx:if="{{ leftWidth }}" class="van-swipe-cell__left" data-key="left" catch:tap="onClick">
  13. <slot name="left" />
  14. </view>
  15. <slot />
  16. <view wx:if="{{ rightWidth }}" class="van-swipe-cell__right" data-key="right" catch:tap="onClick">
  17. <slot name="right" />
  18. </view>
  19. </view>
  20. </view>