2016-08-20 17:43:46 +08:00
|
|
|
---
|
2016-12-20 11:06:40 +08:00
|
|
|
order: 6
|
2016-08-20 17:43:46 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 状态点
|
|
|
|
en-US: Status
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
用于表示状态的小圆点。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Standalone badge with status.
|
|
|
|
|
2017-01-19 15:19:03 +08:00
|
|
|
````__react
|
2016-08-20 17:43:46 +08:00
|
|
|
import { Badge } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<div>
|
|
|
|
<Badge status="success" />
|
|
|
|
<Badge status="error" />
|
|
|
|
<Badge status="default" />
|
|
|
|
<Badge status="processing" />
|
|
|
|
<Badge status="warning" />
|
|
|
|
<br />
|
2016-10-12 19:42:10 +08:00
|
|
|
<Badge status="success" text="Success" />
|
|
|
|
<br />
|
|
|
|
<Badge status="error" text="Error" />
|
|
|
|
<br />
|
|
|
|
<Badge status="default" text="Default" />
|
|
|
|
<br />
|
|
|
|
<Badge status="processing" text="Processing" />
|
|
|
|
<br />
|
2016-08-20 17:43:46 +08:00
|
|
|
<Badge status="warning" text="Warning" />
|
2016-10-12 19:42:10 +08:00
|
|
|
</div>
|
|
|
|
, mountNode);
|
2016-08-20 17:43:46 +08:00
|
|
|
````
|