index.wxml
616 字节
<view
class="van-swipe-cell"
data-key="cell"
bindtap="onClick"
bindtouchstart="startDrag"
bindtouchmove="onDrag"
bindtouchend="endDrag"
bindtouchcancel="endDrag"
>
<view
style="{{ wrapperStyle }}"
bindtransitionend="onTransitionend"
>
<view wx:if="{{ leftWidth }}" class="van-swipe-cell__left" data-key="left" catch:tap="onClick">
<slot name="left" />
</view>
<slot />
<view wx:if="{{ rightWidth }}" class="van-swipe-cell__right" data-key="right" catch:tap="onClick">
<slot name="right" />
</view>
</view>
</view>