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 是否已挂载的信息 #3569

Closed
lisiur opened this issue Aug 22, 2022 · 0 comments
Closed

提供 dialog 是否已挂载的信息 #3569

lisiur opened this issue Aug 22, 2022 · 0 comments
Labels
feature request New feature or request

Comments

@lisiur
Copy link
Contributor

lisiur commented Aug 22, 2022

This function solves the problem (这个功能解决的问题)

使用 createDiscreteApi 创建的 dialog,在调用 dilaog.create 后需要比较久的时间(根据 content 复杂程度而定)才能看到 dialog 显示出来。

因此我需要一个标志 dialog 已显示的回调方法,这样的话,可以在 create 之前显示 loading 效果,在回调里关闭 loading,提高用户体验。

Expected API (期望的 API)

可以在 DialogReactive 里增加一个属性标记 dialog 是否已挂载,这样可以在外部 watch 这个属性;

或者在 exposedDialogEnvProps 增加一个回调函数参数。

@github-actions github-actions bot added the feature request New feature or request label Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant