mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
51 lines
1.3 KiB
Markdown
51 lines
1.3 KiB
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 带边框的
|
|
en-US: border
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
带边框和背景颜色列表。
|
|
|
|
## en-US
|
|
|
|
Descriptions with border and background color.
|
|
|
|
```jsx
|
|
import { Descriptions, Badge } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Descriptions title="User Info" bordered>
|
|
<Descriptions.Item label="Product">Cloud Database</Descriptions.Item>
|
|
<Descriptions.Item label="Billing Mode">Prepaid</Descriptions.Item>
|
|
<Descriptions.Item label="Automatic Renewal">YES</Descriptions.Item>
|
|
<Descriptions.Item label="Order time">2018-04-24 18:00:00</Descriptions.Item>
|
|
<Descriptions.Item label="Usage Time" span={2}>
|
|
2019-04-24 18:00:00
|
|
</Descriptions.Item>
|
|
<Descriptions.Item label="Status" span={3}>
|
|
<Badge status="processing" text="Running" />
|
|
</Descriptions.Item>
|
|
<Descriptions.Item label="Negotiated Amount">$80.00</Descriptions.Item>
|
|
<Descriptions.Item label="Discount">$20.00</Descriptions.Item>
|
|
<Descriptions.Item label="Official Receipts">$60.00</Descriptions.Item>
|
|
<Descriptions.Item label="Config Info">
|
|
Data disk type: MongoDB
|
|
<br />
|
|
Database version: 3.4
|
|
<br />
|
|
Package: dds.mongo.mid
|
|
<br />
|
|
Storage space: 10 GB
|
|
<br />
|
|
Replication factor: 3
|
|
<br />
|
|
Region: East China 1<br />
|
|
</Descriptions.Item>
|
|
</Descriptions>,
|
|
mountNode,
|
|
);
|
|
```
|