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.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2017-08-19 12:39:11 +08:00
|
|
|
import { Divider } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2017-08-19 12:39:11 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
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>
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|