-
Notifications
You must be signed in to change notification settings - Fork 74
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
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
你应该在onTap做这些 |
onTap? 不明白,CupertinoPopoverButton的按钮点击事件,这个我理解是点击按钮,显示弹窗前的事件,问题是怎么处理弹窗收起的情况? |
点击的时候你可以自己决定是否关闭 |
是指CupertinoPopoverMenuItem的onTap?我们设计的弹窗UI比较复杂,这个item的样式不符合设计需求,所以没有用到,CupertinoPopoverMenuList的子元素是自定义的 |
使用场景:不是只点选一个菜单项,就立马收起弹窗,我们的弹窗里会进行多个参数配置,选择好后,用户点击弹窗外的区域,才会收起弹窗,此时希望能更新下原来的页面。 |
点弹窗外的话我这里是没有事件的 |
而且,为什么是点击弹窗外,我觉得这个设计有点不合理,应该由一个按钮让用户点击才合适 |
谢谢,只好试试调整设计方案了 |
你好,收起弹窗后,需要更新下原来的页面,执行setState,应该怎么做?
The text was updated successfully, but these errors were encountered: