index.wxml 608 Bytes
<view bindtouchcancel="endDrag" bindtouchend="endDrag" bindtouchstart="startDrag" capture-bind:touchmove="onDrag" catchtap="onClick" catchtouchmove="{{catchMove?'noop':''}}" class="van-swipe-cell" data-key="cell">
    <view style="{{wrapperStyle}}">
        <view catch:tap="onClick" class="van-swipe-cell__left" data-key="left" wx:if="{{leftWidth}}">
            <slot name="left"></slot>
        </view>
        <slot></slot>
        <view catch:tap="onClick" class="van-swipe-cell__right" data-key="right" wx:if="{{rightWidth}}">
            <slot name="right"></slot>
        </view>
    </view>
</view>