Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
0c9f5b0c
Commit
0c9f5b0c
authored
7 years ago
by
Randy Garces
Committed by
ddcat1115
7 years ago
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
src/components/PageHeader/index.d.ts
src/components/PageHeader/index.d.ts
+1
-0
src/components/PageHeader/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 {
...
@@ -11,6 +11,7 @@ export interface PageHeaderProps {
tabList
?:
Array
<
{
key
:
string
;
tab
:
React
.
ReactNode
}
>
;
tabList
?:
Array
<
{
key
:
string
;
tab
:
React
.
ReactNode
}
>
;
tabActiveKey
?:
string
;
tabActiveKey
?:
string
;
onTabChange
?:
(
key
:
string
)
=>
void
;
onTabChange
?:
(
key
:
string
)
=>
void
;
tabBarExtraContent
?:
React
.
ReactNode
;
linkElement
?:
React
.
ReactNode
;
linkElement
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/components/PageHeader/index.js
View file @
0c9f5b0c
...
@@ -132,7 +132,7 @@ export default class PageHeader extends PureComponent {
...
@@ -132,7 +132,7 @@ export default class PageHeader extends PureComponent {
render
()
{
render
()
{
const
{
const
{
title
,
logo
,
action
,
content
,
extraContent
,
title
,
logo
,
action
,
content
,
extraContent
,
tabList
,
className
,
tabActiveKey
,
tabList
,
className
,
tabActiveKey
,
tabBarExtraContent
,
}
=
this
.
props
;
}
=
this
.
props
;
const
clsString
=
classNames
(
styles
.
pageHeader
,
className
);
const
clsString
=
classNames
(
styles
.
pageHeader
,
className
);
...
@@ -171,6 +171,7 @@ export default class PageHeader extends PureComponent {
...
@@ -171,6 +171,7 @@ export default class PageHeader extends PureComponent {
className
=
{
styles
.
tabs
}
className
=
{
styles
.
tabs
}
{...
activeKeyProps
}
{...
activeKeyProps
}
onChange
=
{
this
.
onChange
}
onChange
=
{
this
.
onChange
}
tabBarExtraContent
=
{
tabBarExtraContent
}
>
>
{
{
tabList
.
map
(
item
=>
<
TabPane
tab
=
{
item
.
tab
}
key
=
{
item
.
key
}
/>
)
tabList
.
map
(
item
=>
<
TabPane
tab
=
{
item
.
tab
}
key
=
{
item
.
key
}
/>
)
...
...
This diff is collapsed.
Click to expand it.
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