jd-opensource / jd-opensource/taro-ui
在h5环境下字体无效异常
Open
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/NervJS/taro-ui/blob/dc8c8cd662c306b903c5839f1d80eca99d5d1bbf/packages/taro-ui/src/common/utils.ts#L212
这里直接硬编码了字体单位为rpx,如果在h5环境下是不认的,导致AtIcon之类的控件,设置size时在h5下无效
测试环境:3.0.0.alpha 10
Contributor guide
Assessment
This issue has not been assessed yet.