mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
39 lines
668 B
Markdown
39 lines
668 B
Markdown
---
|
|
order: 8
|
|
title:
|
|
zh-CN: 状态点
|
|
en-US: Status
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
用于表示状态的小圆点。
|
|
|
|
## en-US
|
|
|
|
Standalone badge with status.
|
|
|
|
```jsx
|
|
import { Badge } from 'antd';
|
|
|
|
export default () => (
|
|
<>
|
|
<Badge status="success" />
|
|
<Badge status="error" />
|
|
<Badge status="default" />
|
|
<Badge status="processing" />
|
|
<Badge status="warning" />
|
|
<br />
|
|
<Badge status="success" text="Success" />
|
|
<br />
|
|
<Badge status="error" text="Error" />
|
|
<br />
|
|
<Badge status="default" text="Default" />
|
|
<br />
|
|
<Badge status="processing" text="Processing" />
|
|
<br />
|
|
<Badge status="warning" text="Warning" />
|
|
</>
|
|
);
|
|
```
|