提交 d16a2e5c 编写于 作者: 拷钉 提交者: 陈帅

Fix wrong tab behavior (#3903)

* 修复:有多个layout时,如果其中一个layout中没有routes,将发收到另一个layout的菜单

* tabs 激活

tabs 激活
上级 eee76430
...@@ -16,11 +16,11 @@ const { Title } = Typography; ...@@ -16,11 +16,11 @@ const { Title } = Typography;
* In order to be compatible with the old version of the PageHeader * In order to be compatible with the old version of the PageHeader
* basically all the functions are implemented. * basically all the functions are implemented.
*/ */
const renderFooter = ({ tabList, activeKeyProps, onTabChange, tabBarExtraContent }) => { const renderFooter = ({ tabList, tabActiveKey, onTabChange, tabBarExtraContent }) => {
return tabList && tabList.length ? ( return tabList && tabList.length ? (
<Tabs <Tabs
className={styles.tabs} className={styles.tabs}
{...activeKeyProps} activeKey={tabActiveKey}
onChange={key => { onChange={key => {
if (onTabChange) { if (onTabChange) {
onTabChange(key); onTabChange(key);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册