ReactNode包含number类型

ReactNode包含number类型,这么些不妥~
type ReactNode = string | number | boolean | {} | ReactElement<any> | ReactNodeArray | ReactPortal
This commit is contained in:
JeromeLin 2018-11-06 13:38:51 +08:00 committed by 偏右
parent e6d9a77029
commit c55d26658d

View File

@ -25,7 +25,7 @@ title: Badge
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| count | 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏 | number\|ReactNode | |
| count | 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏 | ReactNode | |
| dot | 不展示数字,只有一个小红点 | boolean | false |
| offset | 设置状态点的位置偏移,格式为 `[x, y]` | `[number, number]` | - |
| overflowCount | 展示封顶的数字值 | number | 99 |