Browse Source
* 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.snappull/27064/head
Tom Xu
4 years ago
committed by
GitHub
8 changed files with 160 additions and 17 deletions
@ -0,0 +1,30 @@ |
|||
--- |
|||
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); |
|||
``` |
Loading…
Reference in new issue