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] 弹框外层用v-if控制时,没有过渡动画 #4200

Open
gitsheny opened this issue May 17, 2024 · 3 comments
Open

[dialog] 弹框外层用v-if控制时,没有过渡动画 #4200

gitsheny opened this issue May 17, 2024 · 3 comments

Comments

@gitsheny
Copy link

tdesign-vue-next 版本

1.9.5

重现链接

https://stackblitz.com/edit/vitejs-vite-atblcu?file=src%2FApp.vue

重现步骤

我封装了一个组件,组件内使用了弹框。
当我使用v-if控制组件显示,并用同一个值传递给组件内部弹框的visible。
此时弹窗的过渡动画失效

期望结果

弹窗显示过渡动画

实际结果

弹窗的过渡动画失效

框架版本

3.4.27

浏览器版本

Chrome(124.0.6367.208)

系统版本

win10

Node版本

20.12.2

补充说明

No response

Copy link
Contributor

👋 @gitsheny,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented May 17, 2024

一定要用v-if吗 🤔

@gitsheny
Copy link
Author

一定要用v-if吗 🤔

首页上挂载的组件比较多,不想一进去就全加载。
否则我只能在组件内通过延迟赋值给dialog来显示动画了😒

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