Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
ant-design-pro
Commits
0c9f5b0c
Commit
0c9f5b0c
authored
Jan 23, 2018
by
Randy Garces
Committed by
ddcat1115
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PageHeader new props `tabBarExtraContent` to be pass to `Tabs` (#793)
parent
9691ce3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
index.d.ts
src/components/PageHeader/index.d.ts
+1
-0
index.js
src/components/PageHeader/index.js
+2
-1
No files found.
src/components/PageHeader/index.d.ts
View file @
0c9f5b0c
...
...
@@ -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
;
}
...
...
src/components/PageHeader/index.js
View file @
0c9f5b0c
...
...
@@ -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
}
/>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment