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

popover,弹窗收起后,需要更新下原来的页面(setState),怎么做? #57

Closed
shawn736 opened this issue Sep 8, 2020 · 9 comments
Labels
bug Something isn't working

Comments

@shawn736
Copy link

shawn736 commented Sep 8, 2020

你好,收起弹窗后,需要更新下原来的页面,执行setState,应该怎么做?

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Sep 8, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.88. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@Im-Kevin
Copy link
Owner

Im-Kevin commented Sep 8, 2020

你应该在onTap做这些

@shawn736
Copy link
Author

shawn736 commented Sep 8, 2020

你应该在onTap做这些

onTap? 不明白,CupertinoPopoverButton的按钮点击事件,这个我理解是点击按钮,显示弹窗前的事件,问题是怎么处理弹窗收起的情况?

@Im-Kevin
Copy link
Owner

Im-Kevin commented Sep 8, 2020

点击的时候你可以自己决定是否关闭

@shawn736
Copy link
Author

shawn736 commented Sep 8, 2020

点击的时候你可以自己决定是否关闭

是指CupertinoPopoverMenuItem的onTap?我们设计的弹窗UI比较复杂,这个item的样式不符合设计需求,所以没有用到,CupertinoPopoverMenuList的子元素是自定义的

@shawn736
Copy link
Author

shawn736 commented Sep 8, 2020

使用场景:不是只点选一个菜单项,就立马收起弹窗,我们的弹窗里会进行多个参数配置,选择好后,用户点击弹窗外的区域,才会收起弹窗,此时希望能更新下原来的页面。

@Im-Kevin
Copy link
Owner

Im-Kevin commented Sep 8, 2020

点弹窗外的话我这里是没有事件的

@Im-Kevin
Copy link
Owner

Im-Kevin commented Sep 8, 2020

而且,为什么是点击弹窗外,我觉得这个设计有点不合理,应该由一个按钮让用户点击才合适

@shawn736
Copy link
Author

shawn736 commented Sep 8, 2020

而且,为什么是点击弹窗外,我觉得这个设计有点不合理,应该由一个按钮让用户点击才合适

谢谢,只好试试调整设计方案了

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

2 participants