jd-opensource / jd-opensource/taro-ui

【next版本】中Icon的单位在h5被转换成了rpx

Open
#1,248 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
【next版本】中Icon的单位在h5被转换成了rpx

**复现步骤**

```js

// 实际被渲染成了font-size: 60rpx;
```

**期望行为**
渲染成rem

**报错信息**

**系统信息**
Taro CLI 3.0.17 environment info:
System:
OS: Windows 10
Binaries:
Node: 14.14.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD

**补充信息**
https://github.com/NervJS/taro-ui/blob/5c0ed1f75ef610f3c4ae41e23b104542cdd51d8d/packages/taro-ui/src/common/utils.ts#L220

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.