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

vue3模板rpx自动转成了rem,而不是px,导致使用原有css代码会放大 #5287

Closed
chenweimin opened this issue Jan 11, 2025 · 3 comments
Assignees

Comments

@chenweimin
Copy link

vue3模板rpx有方便的办法转px吗

@chenweimin
Copy link
Author

测试了下,好像是vue2 rpx转出来的px去除了小数点,vue3 rpx转出来的px是精准值

@GRCmade
Copy link
Collaborator

GRCmade commented Mar 3, 2025

有的,提供了 uni.rpx2px 方法,在 vue3 上,就是统一转为了 rem。

@GRCmade
Copy link
Collaborator

GRCmade commented Mar 10, 2025

长时间未回复,关闭 issue,如果还存在这个问题,可以重新打开

@GRCmade GRCmade closed this as completed Mar 10, 2025
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