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

折叠面板 展开收起动画性能问题什么时候改改? #16822

Closed
scl930227 opened this issue Nov 7, 2024 · 2 comments
Closed

折叠面板 展开收起动画性能问题什么时候改改? #16822

scl930227 opened this issue Nov 7, 2024 · 2 comments

Comments

@scl930227
Copy link

这个特性解决了什么问题?

实际小程序使用时展开卡顿,多个折叠面板上下排列时更加明显

这个 API 长什么样?

优化卡顿问题! 动画效果使用的是height变更,直接操作 height 属性来实现折叠面板的展开和收起动画,由于高度频繁变化,可能会引起重绘和重排,影响性能;
实在改不了或者觉得设计的很好,不能使用transform: scaleY();transform-origin: top这类方式实现的话!
能不能加个属性开关允许用户自行选择是否开启?

@TheKonka
Copy link
Member

TheKonka commented Nov 8, 2024

发错地方了吧,你这个应该去找具体的 ui 库

This was referenced Nov 9, 2024
@scl930227 scl930227 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
@scl930227
Copy link
Author

贴错地方了

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