Browse Source
* feat: add Badge[status, text], close: #2715 * feat: optimize Badge[status, text]pull/2789/head
Benjy Cui
8 years ago
committed by
偏右
6 changed files with 102 additions and 5 deletions
@ -0,0 +1,36 @@ |
|||||
|
--- |
||||
|
order: 7 |
||||
|
title: |
||||
|
zh-CN: 状态点 |
||||
|
en-US: Status |
||||
|
--- |
||||
|
|
||||
|
## zh-CN |
||||
|
|
||||
|
用于表示状态的小圆点。 |
||||
|
|
||||
|
## en-US |
||||
|
|
||||
|
Standalone badge with status. |
||||
|
|
||||
|
````jsx |
||||
|
import { Badge } from 'antd'; |
||||
|
|
||||
|
ReactDOM.render( |
||||
|
<div> |
||||
|
<label>Status: </label> |
||||
|
<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" /> |
||||
|
</div>, |
||||
|
mountNode |
||||
|
); |
||||
|
```` |
Loading…
Reference in new issue