mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
52 lines
1.3 KiB
Markdown
52 lines
1.3 KiB
Markdown
---
|
|
order: 3
|
|
title:
|
|
zh-CN: 响应式
|
|
en-US: responsive
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
通过响应式的配置可以实现在小屏幕设备上的完美呈现。
|
|
|
|
## en-US
|
|
|
|
Responsive configuration enables perfect presentation on small screen devices.
|
|
|
|
```tsx
|
|
import { Descriptions } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<div>
|
|
<Descriptions
|
|
title="Responsive Descriptions"
|
|
bordered
|
|
column={{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }}
|
|
>
|
|
<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">
|
|
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
|
|
</Descriptions.Item>
|
|
</Descriptions>
|
|
</div>
|
|
);
|
|
|
|
export default App;
|
|
```
|