mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
e737e50207
* new pageheader style * support avatar * update demo * snapshots updated * fix lint * change style * add new style * fix style * update demo * update demo * fix test * snapshots updated * update doc * remove extraContent * Bread crumbs and back icon can only have one * back icon will automatically disappear when configuring breadcrumbs * update snapshot * Improve the priority of backicon * change doc * change doc * change doc * update snapshot
670 B
670 B
order | title | ||||
---|---|---|---|---|---|
2 |
|
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,
);