Skip to content

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

@mkanako

Description

@mkanako
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions