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

t-popup弹框悬浮关闭后卡顿? #3109

Closed
luoxin59420 opened this issue Aug 31, 2024 · 3 comments
Closed

t-popup弹框悬浮关闭后卡顿? #3109

luoxin59420 opened this issue Aug 31, 2024 · 3 comments
Labels
question This is a question, not a bug

Comments

@luoxin59420
Copy link

用了t-popup的弹框,设置为bottom的,为了悬浮设置了bottom样式,在关闭弹框时出现卡顿现象,请问有无其它方案,使它悬浮兵器关闭不卡顿呢?

Copy link
Contributor

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

@luoxin59420
Copy link
Author

用了t-popup的弹框,设置为bottom的,为了悬浮设置了bottom样式,在关闭弹框时出现卡顿现象,请问有无其它方案,使它悬浮兵器关闭不卡顿呢?

代码:

.t-popup--bottom {
padding: 0 40rpx !important;
width: 88% !important;
bottom: 96rpx !important;
left: 6% !important;
right: 6% !important;
border-radius: 32rpx !important;
box-sizing: border-box !important;
}

WeChat_20240831102732.mp4

@jarmywang jarmywang added the question This is a question, not a bug label Sep 1, 2024
@jarmywang
Copy link
Collaborator

不是bug,是过渡动画的transition-timing-function=ease的效果,参考,你可以样式覆盖修改这个值,或者把这个值设置为超过100%:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

3 participants
@jarmywang @luoxin59420 and others