Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 670 Bytes

breadcrumb.md

File metadata and controls

38 lines (31 loc) · 670 Bytes
order title
3
zh-CN en-US
带面包屑页头
Use with breadcrumbs

zh-CN

带面包屑页头,适合层级比较深的页面,让用户可以快速导航。

en-US

With breadcrumbs, it is suitable for deeper pages, allowing users to navigate quickly.

import { PageHeader } from 'antd';

const routes = [
  {
    path: 'index',
    breadcrumbName: 'First-level Menu',
  },
  {
    path: 'first',
    breadcrumbName: 'Second-level Menu',
  },
  {
    path: 'second',
    breadcrumbName: 'Third-level Menu',
  },
];

ReactDOM.render(
  <PageHeader title="Title" breadcrumb={{ routes }} subTitle="This is a subtitle" />,
  mountNode,
);