-
Notifications
You must be signed in to change notification settings - Fork 492
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
[Dialog] 增加onBeforeClose回调 #3888
Labels
to be published
to be published
Comments
👋 @raohuiyong,感谢给 TDesign 提出了 issue。 |
|
@Yacj 根据案例,并未解决我提出的问题。根据案例操作,当我打开弹窗后,再点击【保存】按钮,这个时候在加载中如果点击右上角关闭icon、取消按钮、模态框背景、ESC依然可以关闭弹窗。我的需求是,在加载中,不允许关闭弹框,Element对话框组件是这么实现的 |
+1 希望可以增加 |
的确需要 |
16 tasks
supported 1.10.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个功能解决了什么问题
Dialog对话框做表单的时候,点击“确定”提交数据,数据响应可能需要一些时间,这时候用户可以关闭弹窗不是很友好。
我希望在关闭前做一些业务拦截
你建议的方案是什么
新增onBeforeClose函数,类似于Element对话框组件的before-close关闭前的回调,会暂停 Dialog 的关闭. 回调函数内执行 done 参数方法的时候才是真正关闭对话框的时候.
The text was updated successfully, but these errors were encountered: