minapp-slider-left icon indicating copy to clipboard operation
minapp-slider-left copied to clipboard

列表快速滑动会有删除按钮偶现

Open DLTech21 opened this issue 5 years ago • 5 comments

DLTech21 avatar Dec 25 '18 02:12 DLTech21

请提供重现的环境: 比如机型、小程序版本号、微信版本 如果能有一个最小化的demo就更好了 ,小程序开发工具有个新建代码片段,可以生成一个地址

bigmeow avatar Dec 25 '18 02:12 bigmeow

7.0.0微信版本,iPhone7的机型

DLTech21 avatar Dec 25 '18 05:12 DLTech21

ezgif-1-cbce06c4a8ac

DLTech21 avatar Dec 25 '18 05:12 DLTech21

我是用scroll-view嵌套这个控件

DLTech21 avatar Dec 25 '18 06:12 DLTech21

@DLTech21 修改一下index.js的代码

this.data.moveInstance = this.data.openWidth - x
-      this.data.currentX = x
+      this.setData({
+        moveInstance: this.data.openWidth - x,
+        currentX:x
+      })

判断一下wx:if <view class='slider-left-handle' wx:if="{{currentX<75}}">

bigbossx avatar May 29 '19 08:05 bigbossx