mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
52 lines
875 B
TypeScript
52 lines
875 B
TypeScript
import React from 'react';
|
|
import { Breadcrumb } from 'antd';
|
|
|
|
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;
|