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

[Modal] 对话框希望增加一个切换动画结束后的回调 #40810

Closed
zynyy opened this issue Feb 19, 2023 · 2 comments · Fixed by react-component/dialog#349 or #41253
Closed

[Modal] 对话框希望增加一个切换动画结束后的回调 #40810

zynyy opened this issue Feb 19, 2023 · 2 comments · Fixed by react-component/dialog#349 or #41253

Comments

@zynyy
Copy link

zynyy commented Feb 19, 2023

What problem does this feature solve?

因为对话框在动画执行过程中渲染页面获取的宽度不够准确导致会时不时的布局错乱。所以希望跟 Drawer抽屉一样增加一个 afterOpenChange 切换动画结束后的回调

What does the proposed API look like?

afterOpenChange: (open: boolean) => void

@afc163
Copy link
Member

afc163 commented Feb 20, 2023

Wait for react-component/dialog#251

@zombieJ
Copy link
Member

zombieJ commented Feb 22, 2023

@MadCcc 确保一下 API 都是统一规范

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