ant-design/components/divider/demo/vertical.md

30 lines
410 B
Markdown
Raw Normal View History

---
order: 1
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
import { Divider } from 'antd';
ReactDOM.render(
<div>
Text
<Divider type="vertical" />
<a href="#">Link</a>
<Divider type="vertical" />
<a href="#">Link</a>
2018-06-27 15:55:04 +08:00
</div>,
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
```