mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
60 lines
1.1 KiB
Markdown
60 lines
1.1 KiB
Markdown
---
|
|
order: 5
|
|
title:
|
|
zh-CN: 带下拉菜单的面包屑
|
|
en-US: Bread crumbs with drop down menu
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
面包屑支持下拉菜单。
|
|
|
|
## en-US
|
|
|
|
Breadcrumbs support drop down menu.
|
|
|
|
```jsx
|
|
import { Breadcrumb, Menu } from 'antd';
|
|
|
|
const menu = (
|
|
<Menu
|
|
items={[
|
|
{
|
|
label: (
|
|
<a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">
|
|
General
|
|
</a>
|
|
),
|
|
},
|
|
{
|
|
label: (
|
|
<a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">
|
|
Layout
|
|
</a>
|
|
),
|
|
},
|
|
{
|
|
label: (
|
|
<a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">
|
|
Navigation
|
|
</a>
|
|
),
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
|
|
export default () => (
|
|
<Breadcrumb>
|
|
<Breadcrumb.Item>Ant Design</Breadcrumb.Item>
|
|
<Breadcrumb.Item>
|
|
<a href="">Component</a>
|
|
</Breadcrumb.Item>
|
|
<Breadcrumb.Item overlay={menu}>
|
|
<a href="">General</a>
|
|
</Breadcrumb.Item>
|
|
<Breadcrumb.Item>Button</Breadcrumb.Item>
|
|
</Breadcrumb>
|
|
);
|
|
```
|