mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
Fix badge API doc
This commit is contained in:
parent
5294a69296
commit
ba236419be
@ -26,7 +26,7 @@ Badge normally appears in proximity to notifications or user avatars with eye-ca
|
|||||||
| -------- | ----------- | ---- | ------- |
|
| -------- | ----------- | ---- | ------- |
|
||||||
| count | Number to show in badge | number\|ReactNode | |
|
| count | Number to show in badge | number\|ReactNode | |
|
||||||
| dot | Whether to display a red dot instead of `count` | boolean | `false` |
|
| dot | Whether to display a red dot instead of `count` | boolean | `false` |
|
||||||
| offset | set offset of the badge dot, like [x, y] | [number, number] | - |
|
| offset | set offset of the badge dot, like`[x, y]` | `[number, number]` | - |
|
||||||
| overflowCount | Max count to show | number | 99 |
|
| overflowCount | Max count to show | number | 99 |
|
||||||
| showZero | Whether to show badge when `count` is zero | boolean | `false` |
|
| showZero | Whether to show badge when `count` is zero | boolean | `false` |
|
||||||
| status | Set Badge as a status dot | `success` \| `processing` \| `default` \| `error` \| `warning` | `''` |
|
| status | Set Badge as a status dot | `success` \| `processing` \| `default` \| `error` \| `warning` | `''` |
|
||||||
|
@ -27,7 +27,7 @@ title: Badge
|
|||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| count | 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏 | number\|ReactNode | |
|
| count | 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏 | number\|ReactNode | |
|
||||||
| dot | 不展示数字,只有一个小红点 | boolean | false |
|
| dot | 不展示数字,只有一个小红点 | boolean | false |
|
||||||
| offset | 设置状态点的位置偏移,格式为 [x, y] | [number, number] | - |
|
| offset | 设置状态点的位置偏移,格式为 `[x, y]` | `[number, number]` | - |
|
||||||
| overflowCount | 展示封顶的数字值 | number | 99 |
|
| overflowCount | 展示封顶的数字值 | number | 99 |
|
||||||
| showZero | 当数值为 0 时,是否展示 Badge | boolean | false |
|
| showZero | 当数值为 0 时,是否展示 Badge | boolean | false |
|
||||||
| status | 设置 Badge 为状态点 | Enum{ 'success', 'processing, 'default', 'error', 'warning' } | '' |
|
| status | 设置 Badge 为状态点 | Enum{ 'success', 'processing, 'default', 'error', 'warning' } | '' |
|
||||||
|
Loading…
Reference in New Issue
Block a user