You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
875 B
51 lines
875 B
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;
|
|
|