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

[FR]: 折叠面板 展开收起动画性能问题什么时候改改? #3226

Open
scl930227 opened this issue Nov 15, 2024 · 0 comments
Open
Labels
Feature Request 新功能请求

Comments

@scl930227
Copy link

NutUI 包名

@nutui/nutui-taro

这个功能解决了什么问题?

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

你期望的组件设计是怎样的?

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

@scl930227 scl930227 added the Feature Request 新功能请求 label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request 新功能请求
Projects
None yet
Development

No branches or pull requests

1 participant