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

ActionSheet 中点击蒙层关闭时是否可以增加相关返回 #908

Closed
soda-x opened this issue Feb 28, 2017 · 10 comments
Closed

ActionSheet 中点击蒙层关闭时是否可以增加相关返回 #908

soda-x opened this issue Feb 28, 2017 · 10 comments
Assignees
Labels

Comments

@soda-x
Copy link

soda-x commented Feb 28, 2017

可以在 callback 中设置返回字段

也可以是个相关的事件

@paranoidjk
Copy link
Contributor

意思需要点击蒙层关闭的回调?

onClose就可以的

@paranoidjk
Copy link
Contributor

额,api好像没暴露出来

@paranoidjk paranoidjk self-assigned this Feb 28, 2017
@silentcloud
Copy link
Contributor

不应该有 onClose 这样的 api,应该是通过回调的 index 来判断 @pigcan ,参考 native,RN

@paranoidjk
Copy link
Contributor

@silentcloud 有啊,rc-dialog 的 onClose https://github.com/react-component/dialog#rc-dialogweb

@silentcloud
Copy link
Contributor

silentcloud commented Feb 28, 2017

@paranoidjk api 尽量平台通用保持一致性,这也是最初做这个库的出发点

http://facebook.github.io/react-native/releases/next/docs/actionsheetios.html

@paranoidjk paranoidjk assigned silentcloud and unassigned paranoidjk Feb 28, 2017
@silentcloud
Copy link
Contributor

@warmhug 来参与一下讨论

@soda-x
Copy link
Author

soda-x commented Feb 28, 2017

@silentcloud 现在点击蒙层关闭,并没有在回调中体现 index 吧,按理是需要和 cancelButton 保持一致的.

@silentcloud
Copy link
Contributor

@pigcan 恩,点击蒙层应该是返回取消的 index,web 是有 bug 的,这个我等会改

@silentcloud silentcloud added bug and removed question labels Feb 28, 2017
@warmhug
Copy link
Contributor

warmhug commented Feb 28, 2017

index 有的,看 demo 写法

@1140349909
Copy link

为什么点击蒙层没办法关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants