diff --git a/components/badge/index.en-US.md b/components/badge/index.en-US.md index 3810f867f4..546169ac39 100644 --- a/components/badge/index.en-US.md +++ b/components/badge/index.en-US.md @@ -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 | | | 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 | | showZero | Whether to show badge when `count` is zero | boolean | `false` | | status | Set Badge as a status dot | `success` \| `processing` \| `default` \| `error` \| `warning` | `''` | diff --git a/components/badge/index.zh-CN.md b/components/badge/index.zh-CN.md index 513c1b862d..c4dd553585 100644 --- a/components/badge/index.zh-CN.md +++ b/components/badge/index.zh-CN.md @@ -27,7 +27,7 @@ title: Badge | --- | --- | --- | --- | | count | 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏 | number\|ReactNode | | | dot | 不展示数字,只有一个小红点 | boolean | false | -| offset | 设置状态点的位置偏移,格式为 [x, y] | [number, number] | - | +| offset | 设置状态点的位置偏移,格式为 `[x, y]` | `[number, number]` | - | | overflowCount | 展示封顶的数字值 | number | 99 | | showZero | 当数值为 0 时,是否展示 Badge | boolean | false | | status | 设置 Badge 为状态点 | Enum{ 'success', 'processing, 'default', 'error', 'warning' } | '' |