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

【dialog】弹窗自带的close按钮支持自定义逻辑 #546

Open
ccuuu opened this issue Jan 9, 2024 · 1 comment
Open

【dialog】弹窗自带的close按钮支持自定义逻辑 #546

ccuuu opened this issue Jan 9, 2024 · 1 comment

Comments

@ccuuu
Copy link

ccuuu commented Jan 9, 2024

现状:
closable为true的dialog自带的close按钮目前无法实现自定义逻辑,如果涉及到类似于阻断性处理等的需求目前实现起来较麻烦。

原处理逻辑:
企业微信截图_71f32122-3b9d-4945-bc93-2a530cb74096
需要通过beforeCancel才能实现

@yangxiaolang
Copy link
Collaborator

beforeCancel 应该是满足要求的吧,就是 API 设计需要考虑?beforeClose 可能更通用些

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

No branches or pull requests

2 participants