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

Taro 需要开放 Pxtransform 接口 #388

Closed
jimczj opened this issue Jul 26, 2018 · 1 comment
Closed

Taro 需要开放 Pxtransform 接口 #388

jimczj opened this issue Jul 26, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@jimczj
Copy link
Contributor

jimczj commented Jul 26, 2018

写组件的时候,经常需要动态改变字体大小、宽度、高度等,在 jsx 内写的px单位不会被转化为rem或rpx。我觉得Taro需要提供一个函数Taro.pxTransform 函数,来方便我们进行单位转化。

@luckyadam
Copy link
Member

@jimczj 非常棒~ 这个后续加入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants