Commit 0c9f5b0c authored by Randy Garces's avatar Randy Garces Committed by ddcat1115

Add PageHeader new props `tabBarExtraContent` to be pass to `Tabs` (#793)

parent 9691ce3b
......@@ -11,6 +11,7 @@ export interface PageHeaderProps {
tabList?: Array<{ key: string; tab: React.ReactNode }>;
tabActiveKey?: string;
onTabChange?: (key: string) => void;
tabBarExtraContent?: React.ReactNode;
linkElement?: React.ReactNode;
style?: React.CSSProperties;
}
......
......@@ -132,7 +132,7 @@ export default class PageHeader extends PureComponent {
render() {
const {
title, logo, action, content, extraContent,
tabList, className, tabActiveKey,
tabList, className, tabActiveKey, tabBarExtraContent,
} = this.props;
const clsString = classNames(styles.pageHeader, className);
......@@ -171,6 +171,7 @@ export default class PageHeader extends PureComponent {
className={styles.tabs}
{...activeKeyProps}
onChange={this.onChange}
tabBarExtraContent={tabBarExtraContent}
>
{
tabList.map(item => <TabPane tab={item.tab} key={item.key} />)
......
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