update Badge doc (#8905)

* Update index.zh-CN.md

* Update index.en-US.md
This commit is contained in:
bzone
2018-01-13 18:10:45 +08:00
committed by Wei Zhu
parent 7f5922b209
commit 3418cb8a60
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ Badge normally appears in proximity to notifications or user avatars with eye-ca
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
| count | Number to show in badge | number | |
| count | Number to show in badge | number\|ReactNode | |
| dot | Whether to display a red dot instead of `count` | boolean | `false` |
| offset | set offset of the badge dot, like [x, y] | [number, number] | - |
| overflowCount | Max count to show | number | 99 |

View File

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