2017-08-19 12:39:11 +08:00
|
|
|
---
|
2020-04-21 14:16:33 +08:00
|
|
|
order: 3
|
2017-08-19 12:39:11 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 垂直分割线
|
|
|
|
en-US: Vertical
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
使用 `type="vertical"` 设置为行内的垂直分割线。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Use `type="vertical"` make it vertical.
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```jsx
|
2017-08-19 12:39:11 +08:00
|
|
|
import { Divider } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
2020-04-21 14:16:33 +08:00
|
|
|
<>
|
2017-08-19 12:39:11 +08:00
|
|
|
Text
|
|
|
|
<Divider type="vertical" />
|
|
|
|
<a href="#">Link</a>
|
|
|
|
<Divider type="vertical" />
|
|
|
|
<a href="#">Link</a>
|
2020-04-21 14:16:33 +08:00
|
|
|
</>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|