2019-07-25 12:02:15 +08:00
|
|
|
---
|
|
|
|
order: 6
|
|
|
|
title:
|
|
|
|
zh-CN: 分隔符
|
|
|
|
en-US: Configuring the Separator
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
使用 `Breadcrumb.Separator` 可以自定义分隔符。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
2020-08-05 14:50:52 +08:00
|
|
|
The separator can be customized by setting the separator property: `Breadcrumb.Separator`.
|
2019-07-25 12:02:15 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2019-07-25 12:02:15 +08:00
|
|
|
import { Breadcrumb } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2019-07-25 12:02:15 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2019-07-25 12:02:15 +08:00
|
|
|
<Breadcrumb separator="">
|
2019-07-31 10:47:34 +08:00
|
|
|
<Breadcrumb.Item>Location</Breadcrumb.Item>
|
2019-07-25 12:02:15 +08:00
|
|
|
<Breadcrumb.Separator>:</Breadcrumb.Separator>
|
|
|
|
<Breadcrumb.Item href="">Application Center</Breadcrumb.Item>
|
|
|
|
<Breadcrumb.Separator />
|
|
|
|
<Breadcrumb.Item href="">Application List</Breadcrumb.Item>
|
|
|
|
<Breadcrumb.Separator />
|
|
|
|
<Breadcrumb.Item>An Application</Breadcrumb.Item>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Breadcrumb>
|
2019-07-25 12:02:15 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-07-25 12:02:15 +08:00
|
|
|
```
|