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

swipeAction 说明文档建议 #120

Closed
yaoshanliang opened this issue Oct 11, 2018 · 0 comments · Fixed by #124
Closed

swipeAction 说明文档建议 #120

yaoshanliang opened this issue Oct 11, 2018 · 0 comments · Fixed by #124
Labels
document Document

Comments

@yaoshanliang
Copy link

https://docs.alipay.com/mini/component-ext/swipe-action

image

建议restore改为restore="{{swipeIndex == null || swipeIndex !== index}}"

这样编辑和删除完之后直接this.setData({'swipeIndex': null})即可恢复到初始状态

@Phieo Phieo added the document Document label Oct 11, 2018
Phieo added a commit that referenced this issue Oct 12, 2018
@Phieo Phieo mentioned this issue Oct 12, 2018
zhengsk pushed a commit that referenced this issue Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document Document
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants