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组件能否考虑加个afterOpen回调 #1725

Closed
1 task done
mkanako opened this issue Jan 14, 2020 · 2 comments
Closed
1 task done

modal组件能否考虑加个afterOpen回调 #1725

mkanako opened this issue Jan 14, 2020 · 2 comments
Labels

Comments

@mkanako
Copy link

mkanako commented Jan 14, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

目前,我modal打开后,会有一个ajax请求,请求会带个全屏loading动画,而modal打开也有一个动画,这样2个动画会同时进行,视觉效果很不好,所以如果能有个afterOpen回调在modal动画完成后,再进行我的操作,就完美了

然后我看react那边也没有afterOpen,有人提过ant-design/ant-design#4978 ,最后给出的理由和方法也是不能解决我这个情况,或者他们也没想到我这种情况

而elementUI的modal就有打开动画完成后的回调

What does the proposed API look like?

类似afterCLose

@mkanako
Copy link
Author

mkanako commented Jan 19, 2020

问了react那边不加😂

@mkanako mkanako closed this as completed Jan 19, 2020
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant