2020-03-22 11:38:02 +08:00
|
|
|
---
|
|
|
|
order: 0
|
|
|
|
title:
|
|
|
|
zh-CN: 基本用法
|
|
|
|
en-US: Basic Usage
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
相邻组件水平间距。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Crowded components horizontal spacing.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2020-03-22 11:38:02 +08:00
|
|
|
import { UploadOutlined } from '@ant-design/icons';
|
2022-05-23 14:37:16 +08:00
|
|
|
import { Button, Popconfirm, Space, Upload } from 'antd';
|
|
|
|
import React from 'react';
|
2020-03-22 11:38:02 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2022-04-28 20:54:19 +08:00
|
|
|
<Space>
|
|
|
|
Space
|
|
|
|
<Button type="primary">Button</Button>
|
|
|
|
<Upload>
|
|
|
|
<Button>
|
|
|
|
<UploadOutlined /> Click to Upload
|
|
|
|
</Button>
|
|
|
|
</Upload>
|
|
|
|
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
|
|
|
|
<Button>Confirm</Button>
|
|
|
|
</Popconfirm>
|
|
|
|
</Space>
|
|
|
|
);
|
2020-03-22 11:38:02 +08:00
|
|
|
|
2022-04-28 20:54:19 +08:00
|
|
|
export default App;
|
2020-03-22 11:38:02 +08:00
|
|
|
```
|