mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
2eec689d74
* feat: Space add split * Update index.en-US.md * changed * improve * improve * Update demo.test.js.snap * Update vertical-split.md * Update demo.test.js.snap * remove vertical-split * Update demo.test.js.snap
31 lines
482 B
Markdown
31 lines
482 B
Markdown
---
|
|
order: 99
|
|
title:
|
|
zh-CN: 分隔符
|
|
en-US: Split
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
相邻组件分隔符。
|
|
|
|
## en-US
|
|
|
|
Crowded components split.
|
|
|
|
```jsx
|
|
import { Space, Typography, Divider } from 'antd';
|
|
|
|
function SpaceSplit() {
|
|
return (
|
|
<Space split={<Divider type="vertical" />}>
|
|
<Typography.Link>Link</Typography.Link>
|
|
<Typography.Link>Link</Typography.Link>
|
|
<Typography.Link>Link</Typography.Link>
|
|
</Space>
|
|
);
|
|
}
|
|
|
|
ReactDOM.render(<SpaceSplit />, mountNode);
|
|
```
|