mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
34 lines
763 B
Markdown
34 lines
763 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 分隔符
|
|
en-US: Configuring the Separator
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
使用 `Breadcrumb.Separator` 可以自定义分隔符。
|
|
|
|
## en-US
|
|
|
|
The separator can be customized by setting the separator property: `Breadcrumb.Separator`.
|
|
|
|
```tsx
|
|
import { Breadcrumb } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<Breadcrumb separator="">
|
|
<Breadcrumb.Item>Location</Breadcrumb.Item>
|
|
<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>
|
|
</Breadcrumb>
|
|
);
|
|
|
|
export default App;
|
|
```
|