Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-layout
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packages
pro-layout
Commits
5124ba6d
Commit
5124ba6d
authored
Oct 29, 2020
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: optimize PageHeader style
parent
a535d800
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
index.less
src/PageContainer/index.less
+9
-0
index.tsx
src/PageContainer/index.tsx
+3
-1
No files found.
src/PageContainer/index.less
View file @
5124ba6d
...
@@ -12,6 +12,15 @@
...
@@ -12,6 +12,15 @@
.@{ant-prefix}-tabs-nav {
.@{ant-prefix}-tabs-nav {
margin: 0;
margin: 0;
}
}
// fix antd@4 upgrade PageHeader style.
.ant-page-header-heading {
.ant-page-header-heading-title,.ant-page-header-heading-extra {
margin: 4px 0;
}
.ant-page-header-heading-sub-title {
margin: 9px 0;
}
}
}
}
&-ghost {
&-ghost {
.@{pro-layout-page-container}-warp {
.@{pro-layout-page-container}-warp {
...
...
src/PageContainer/index.tsx
View file @
5124ba6d
...
@@ -124,7 +124,7 @@ const defaultPageHeaderRender = (
...
@@ -124,7 +124,7 @@ const defaultPageHeaderRender = (
props
:
PageContainerProps
,
props
:
PageContainerProps
,
value
:
RouteContextProps
&
{
prefixedClassName
:
string
},
value
:
RouteContextProps
&
{
prefixedClassName
:
string
},
):
VNodeChild
|
JSX
.
Element
=>
{
):
VNodeChild
|
JSX
.
Element
=>
{
const
{
title
,
content
,
pageHeaderRender
,
header
,
extraContent
,
prefixCls
,
...
restProps
}
=
props
;
const
{
title
,
tabList
,
tabActiveKey
,
content
,
pageHeaderRender
,
header
,
extraContent
,
prefixCls
,
...
restProps
}
=
props
;
console
.
log
(
'restProps'
,
restProps
);
console
.
log
(
'restProps'
,
restProps
);
console
.
log
(
'routeContext.value'
,
value
);
console
.
log
(
'routeContext.value'
,
value
);
if
(
pageHeaderRender
)
{
if
(
pageHeaderRender
)
{
...
@@ -141,6 +141,8 @@ const defaultPageHeaderRender = (
...
@@ -141,6 +141,8 @@ const defaultPageHeaderRender = (
{
...
restProps
}
{
...
restProps
}
footer=
{
renderFooter
({
footer=
{
renderFooter
({
...
restProps
,
...
restProps
,
tabList
,
tabActiveKey
,
prefixedClassName
:
value
.
prefixedClassName
,
prefixedClassName
:
value
.
prefixedClassName
,
})
}
})
}
{
...
header
}
{
...
header
}
...
...
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