2020-04-21 14:16:33 +08:00
|
|
|
---
|
|
|
|
order: 2
|
|
|
|
title:
|
|
|
|
zh-CN: 分割文字使用正文样式
|
|
|
|
en-US: Text without heading style
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
使用 `plain` 可以设置为更轻量的分割文字样式。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
You can use non-heading style of divider text by setting `plain`.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2020-04-21 14:16:33 +08:00
|
|
|
import { Divider } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2020-04-21 14:16:33 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-04-21 14:16:33 +08:00
|
|
|
<>
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
|
|
|
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
|
|
|
</p>
|
|
|
|
<Divider plain>Text</Divider>
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
|
|
|
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
|
|
|
</p>
|
|
|
|
<Divider orientation="left" plain>
|
|
|
|
Left Text
|
|
|
|
</Divider>
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
|
|
|
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
|
|
|
</p>
|
|
|
|
<Divider orientation="right" plain>
|
|
|
|
Right Text
|
|
|
|
</Divider>
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
|
|
|
|
probare, quae sunt a te dicta? Refert tamen, quo modo.
|
|
|
|
</p>
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2020-04-21 14:16:33 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-04-21 14:16:33 +08:00
|
|
|
```
|