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

antd-mobile使用的是umd版本,使用postcss-to-viewport怎么支持? #6738

Closed
tangbei opened this issue Sep 3, 2024 · 1 comment
Closed

Comments

@tangbei
Copy link

tangbei commented Sep 3, 2024

Version of antd-mobile

antd-mobile.compatible-5.33.0.umd.min.js

Description

antd-mobile使用的是umd版本,umd版本内有js实现css代码,使用postcss-to-viewport无法自适应;有umd版本是纯js的么,再引入css文件,使用postcss-to-viewport进行转一次。

@zombieJ
Copy link
Member

zombieJ commented Sep 3, 2024

js 实现的 css 样式都是需要动态计算的样式。这些是无法被 post css 来静态化处理的。静态化的样式已经在 style.css 里了。内部动态部分用的是 React Spring,它们本身是基于 px 来进行计算的,如果有 post 需求,可以考虑在它们的官网找找或者提 issue 哈~

@zombieJ zombieJ closed this as completed Sep 3, 2024
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