2020-10-08 18:41:40 +08:00
|
|
|
---
|
|
|
|
order: 99
|
|
|
|
title:
|
|
|
|
zh-CN: 分隔符
|
|
|
|
en-US: Split
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
相邻组件分隔符。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Crowded components split.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2020-10-08 18:41:40 +08:00
|
|
|
import { Space, Typography, Divider } from 'antd';
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2022-04-28 20:54:19 +08:00
|
|
|
<Space split={<Divider type="vertical" />}>
|
|
|
|
<Typography.Link>Link</Typography.Link>
|
|
|
|
<Typography.Link>Link</Typography.Link>
|
|
|
|
<Typography.Link>Link</Typography.Link>
|
|
|
|
</Space>
|
|
|
|
);
|
2020-10-08 18:41:40 +08:00
|
|
|
|
2022-04-28 20:54:19 +08:00
|
|
|
export default App;
|
2020-10-08 18:41:40 +08:00
|
|
|
```
|