2019-05-22 23:22:09 +08:00
|
|
|
---
|
|
|
|
order: 3
|
|
|
|
title:
|
|
|
|
zh-CN: 响应式
|
|
|
|
en-US: responsive
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
通过响应式的配置可以实现在小屏幕设备上的完美呈现。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Responsive configuration enables perfect presentation on small screen devices.
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
import { Descriptions } from 'antd';
|
|
|
|
|
|
|
|
const Demo = () => {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Descriptions
|
|
|
|
title="Responsive Descriptions"
|
2019-07-12 10:42:09 +08:00
|
|
|
bordered
|
2019-05-22 23:22:09 +08:00
|
|
|
column={{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }}
|
|
|
|
>
|
2019-05-27 21:32:45 +08:00
|
|
|
<Descriptions.Item label="Product">Cloud Database</Descriptions.Item>
|
|
|
|
<Descriptions.Item label="Billing">Prepaid</Descriptions.Item>
|
|
|
|
<Descriptions.Item label="time">18:00:00</Descriptions.Item>
|
|
|
|
<Descriptions.Item label="Amount">$80.00</Descriptions.Item>
|
|
|
|
<Descriptions.Item label="Discount">$20.00</Descriptions.Item>
|
|
|
|
<Descriptions.Item label="Official">$60.00</Descriptions.Item>
|
|
|
|
<Descriptions.Item label="Config Info">
|
2019-05-22 23:22:09 +08:00
|
|
|
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
|
2019-05-27 21:32:45 +08:00
|
|
|
</Descriptions.Item>
|
2019-05-22 23:22:09 +08:00
|
|
|
</Descriptions>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
ReactDOM.render(<Demo />, mountNode);
|
|
|
|
```
|