mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
7a7ee61fd7
* fix(Breadcrumb): items dropdownProps loss * chore: revert demo * test: add test
52 lines
875 B
TypeScript
52 lines
875 B
TypeScript
import { Breadcrumb } from 'antd';
|
|
import React from 'react';
|
|
|
|
const menuItems = [
|
|
{
|
|
key: '1',
|
|
label: (
|
|
<a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">
|
|
General
|
|
</a>
|
|
),
|
|
},
|
|
{
|
|
key: '2',
|
|
label: (
|
|
<a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">
|
|
Layout
|
|
</a>
|
|
),
|
|
},
|
|
{
|
|
key: '3',
|
|
label: (
|
|
<a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">
|
|
Navigation
|
|
</a>
|
|
),
|
|
},
|
|
];
|
|
|
|
const App: React.FC = () => (
|
|
<Breadcrumb
|
|
items={[
|
|
{
|
|
title: 'Ant Design',
|
|
},
|
|
{
|
|
title: <a href="">Component</a>,
|
|
},
|
|
{
|
|
title: <a href="">General</a>,
|
|
menu: { items: menuItems },
|
|
},
|
|
{
|
|
title: 'Button',
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
|
|
export default App;
|