Commit d091cf4d authored by afc163's avatar afc163

Fix prop name typo, close #681

parent 5e568ad2
...@@ -60,7 +60,7 @@ export default class PageHeader extends PureComponent { ...@@ -60,7 +60,7 @@ export default class PageHeader extends PureComponent {
const { const {
title, logo, action, content, extraContent, title, logo, action, content, extraContent,
breadcrumbList, tabList, className, linkElement = 'a', breadcrumbList, tabList, className, linkElement = 'a',
activeTabKey, tabActiveKey,
} = this.props; } = this.props;
const clsString = classNames(styles.pageHeader, className); const clsString = classNames(styles.pageHeader, className);
let breadcrumb; let breadcrumb;
...@@ -122,15 +122,15 @@ export default class PageHeader extends PureComponent { ...@@ -122,15 +122,15 @@ export default class PageHeader extends PureComponent {
} }
let tabDefaultValue; let tabDefaultValue;
if (activeTabKey !== undefined && tabList) { if (tabActiveKey !== undefined && tabList) {
tabDefaultValue = tabList.filter(item => item.default)[0] || tabList[0]; tabDefaultValue = tabList.filter(item => item.default)[0] || tabList[0];
} }
const activeKeyProps = { const activeKeyProps = {
defaultActiveKey: tabDefaultValue && tabDefaultValue.key, defaultActiveKey: tabDefaultValue && tabDefaultValue.key,
}; };
if (activeTabKey !== undefined) { if (tabActiveKey !== undefined) {
activeKeyProps.activeKey = activeTabKey; activeKeyProps.activeKey = tabActiveKey;
} }
return ( return (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment