ant-design/components/breadcrumb/demo/separator.md

31 lines
637 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 4
2019-05-07 14:57:32 +08:00
title:
zh-CN: 分隔符
en-US: Configuring the Separator
2016-03-31 09:40:55 +08:00
---
2015-12-07 12:13:13 +08:00
## zh-CN
2015-12-09 16:48:52 +08:00
使用 `separator=">"` 可以自定义分隔符。
2015-12-07 12:13:13 +08:00
## en-US
2020-08-18 17:53:21 +08:00
The separator can be customized by setting the separator property: `separator=">"`.
```tsx
2015-12-07 12:13:13 +08:00
import { Breadcrumb } from 'antd';
2022-05-21 22:14:15 +08:00
import React from 'react';
2015-12-07 12:13:13 +08:00
const App: React.FC = () => (
2015-12-09 16:48:52 +08:00
<Breadcrumb separator=">">
<Breadcrumb.Item>Home</Breadcrumb.Item>
<Breadcrumb.Item href="">Application Center</Breadcrumb.Item>
<Breadcrumb.Item href="">Application List</Breadcrumb.Item>
<Breadcrumb.Item>An Application</Breadcrumb.Item>
</Breadcrumb>
2018-11-28 15:00:03 +08:00
);
export default App;
2019-05-07 14:57:32 +08:00
```