Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DLTech21 opened this issue Dec 25, 2018 · 5 comments
Open

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

DLTech21 opened this issue Dec 25, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@DLTech21
Copy link

No description provided.

@bigmeow
Copy link
Owner

bigmeow commented Dec 25, 2018

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

@DLTech21
Copy link
Author

7.0.0微信版本,iPhone7的机型

@DLTech21
Copy link
Author

ezgif-1-cbce06c4a8ac

@DLTech21
Copy link
Author

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

@bigbossx
Copy link

@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}}">

@bigmeow bigmeow added the bug Something isn't working label May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants