mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 01:11:26 +08:00
28 lines
484 B
TypeScript
28 lines
484 B
TypeScript
|
import { Breadcrumb } from 'antd';
|
||
|
import React from 'react';
|
||
|
|
||
|
export default () => (
|
||
|
<Breadcrumb
|
||
|
routes={[
|
||
|
{
|
||
|
path: '/home',
|
||
|
breadcrumbName: 'Home',
|
||
|
},
|
||
|
{
|
||
|
path: '/user',
|
||
|
breadcrumbName: 'User',
|
||
|
children: [
|
||
|
{
|
||
|
path: '/user1',
|
||
|
breadcrumbName: 'User1',
|
||
|
},
|
||
|
{
|
||
|
path: '/user2',
|
||
|
breadcrumbName: 'User2',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]}
|
||
|
/>
|
||
|
);
|