2016-08-20 17:43:46 +08:00
|
|
|
---
|
2021-08-02 12:22:30 +08:00
|
|
|
order: 8
|
2016-08-20 17:43:46 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 状态点
|
|
|
|
en-US: Status
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
用于表示状态的小圆点。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Standalone badge with status.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2022-09-24 23:15:22 +08:00
|
|
|
import { Badge, Space } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2016-08-20 17:43:46 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2021-08-02 12:22:30 +08:00
|
|
|
<>
|
2022-09-24 23:15:22 +08:00
|
|
|
<Space>
|
|
|
|
<Badge status="success" />
|
|
|
|
<Badge status="error" />
|
|
|
|
<Badge status="default" />
|
|
|
|
<Badge status="processing" />
|
|
|
|
<Badge status="warning" />
|
|
|
|
</Space>
|
2016-08-20 17:43:46 +08:00
|
|
|
<br />
|
2022-09-24 23:15:22 +08:00
|
|
|
<Space direction="vertical">
|
|
|
|
<Badge status="success" text="Success" />
|
|
|
|
<Badge status="error" text="Error" />
|
|
|
|
<Badge status="default" text="Default" />
|
|
|
|
<Badge status="processing" text="Processing" />
|
|
|
|
<Badge status="warning" text="Warning" />
|
|
|
|
</Space>
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|