mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
Merge pull request #15689 from ant-design/page-hader-breadcrumb
support level 2 breadcrumb
This commit is contained in:
commit
331dfb2a9b
@ -51,7 +51,7 @@ const renderBreadcrumb = (breadcrumb: BreadcrumbProps) => {
|
||||
|
||||
const renderHeader = (prefixCls: string, props: PageHeaderProps) => {
|
||||
const { breadcrumb, backIcon, onBack } = props;
|
||||
if (breadcrumb && breadcrumb.routes && breadcrumb.routes.length > 2) {
|
||||
if (breadcrumb && breadcrumb.routes && breadcrumb.routes.length >= 2) {
|
||||
return renderBreadcrumb(breadcrumb);
|
||||
}
|
||||
return renderBack(prefixCls, backIcon, onBack);
|
||||
|
Loading…
Reference in New Issue
Block a user