一:前言
左滑的元素高度需要是固定的,因为movable-view
要求必须设置width和height;
效果图:
wxml:
<view wx:for="{
{items}}" wx:key="{
{index}}">
<movable-area class='movable-area'>
<movable-view direction="horizontal" class='movable-view'>
<view class="touch-item {
{item.isTouchMove ? 'touch-move-active' : ''}}" data-index="{
{index}}" bindtouchstart="touchstart" bindtouchmove="touchmove">
<view class&