jd-opensource / jd-opensource/taro-ui

Divider fontSize 配置失效。

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

Description

**问题描述**
Divider fontSize 配置失效

**复现步骤**

1、页面中引入 AtDivider 组件
2、配置 fontSIze={24} fontColor="#f00"
3、结果发现文字还是32
4、devtool查看发现 style中没有正确设置font-size,只设置了color

```js

```

**期望行为**
Divider 显示为配置的字号

**报错信息**

**系统信息**
Taro CLI 3.2.13 environment info:
System:
OS: macOS 11.2.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.16.2 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 7.16.0 - /usr/local/bin/npm
npmPackages:
@tarojs/cli: 3.2.13 => 3.2.13
@tarojs/components: 3.2.13 => 3.2.13
@tarojs/mini-runner: 3.2.13 => 3.2.13
@tarojs/react: 3.2.13 => 3.2.13
@tarojs/runtime: 3.2.13 => 3.2.13
@tarojs/taro: 3.2.13 => 3.2.13
@tarojs/webpack-runner: 3.2.13 => 3.2.13
babel-preset-taro: 3.2.13 => 3.2.13
eslint-config-taro: 3.2.13 => 3.2.13
react: ^17.0.0 => 17.0.2
taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.10

**补充信息**
错误原因,如图
![111](https://user-images.githubusercontent.com/8966624/127288983-6eab3427-dc59-4b7f-b515-e0a4a1bfa78b.png)

改正方法 "font-size" => "fontSize"。

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.