Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
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
pro-blocks
Commits
ed0b743c
Commit
ed0b743c
authored
Mar 09, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix megre v2 bug
parent
c9ff3d38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
24 deletions
+13
-24
src/layouts/Header.js
src/layouts/Header.js
+7
-23
src/routes/UserProfile/Userinfo/Info.js
src/routes/UserProfile/Userinfo/Info.js
+6
-1
No files found.
src/layouts/Header.js
View file @
ed0b743c
...
...
@@ -23,11 +23,8 @@ class HeaderView extends PureComponent {
.
removeEventListener
(
'
scroll
'
,
this
.
handScroll
);
}
getHeadWidth
=
()
=>
{
if
(
!
this
.
props
.
fixedHeader
||
this
.
props
.
layout
===
'
topmenu
'
||
this
.
props
.
fixSiderbar
)
{
const
{
fixedHeader
,
layout
,
fixSiderbar
}
=
this
.
props
.
setting
;
if
(
!
fixedHeader
||
layout
===
'
topmenu
'
||
fixSiderbar
)
{
return
'
100%
'
;
}
if
(
!
this
.
props
.
collapsed
)
{
...
...
@@ -93,14 +90,8 @@ class HeaderView extends PureComponent {
}
};
render
()
{
const
{
logo
,
isMobile
,
handleMenuCollapse
,
silderTheme
,
layout
,
fixedHeader
,
}
=
this
.
props
;
const
{
isMobile
,
handleMenuCollapse
}
=
this
.
props
;
const
{
silderTheme
,
layout
,
fixedHeader
}
=
this
.
props
.
setting
;
const
isTop
=
layout
===
'
topmenu
'
;
const
HeaderDom
=
this
.
state
.
visible
?
(
<
Header
...
...
@@ -109,22 +100,19 @@ class HeaderView extends PureComponent {
>
{
isTop
&&
!
isMobile
?
(
<
TopNavHeader
logo
=
{
logo
}
theme
=
{
silderTheme
}
mode
=
"
horizontal
"
Authorized
=
{
Authorized
}
isMobile
=
{
isMobile
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onCollapse
=
{
handleMenuCollapse
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onMenuClick
=
{
this
.
handleMenuClick
}
onNoticeVisibleChange
=
{
this
.
handleNoticeVisibleChange
}
{...
this
.
props
}
/
>
)
:
(
<
GlobalHeader
logo
=
{
logo
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onCollapse
=
{
handleMenuCollapse
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onMenuClick
=
{
this
.
handleMenuClick
}
onNoticeVisibleChange
=
{
this
.
handleNoticeVisibleChange
}
{...
this
.
props
}
...
...
@@ -145,9 +133,5 @@ export default connect(({ user, global, setting, loading }) => ({
collapsed
:
global
.
collapsed
,
fetchingNotices
:
loading
.
effects
[
'
global/fetchNotices
'
],
notices
:
global
.
notices
,
layout
:
setting
.
layout
,
silderTheme
:
setting
.
silderTheme
,
fixedHeader
:
setting
.
fixedHeader
,
fixSiderbar
:
setting
.
fixSiderbar
,
autoHideHeader
:
setting
.
autoHideHeader
,
setting
,
}))(
HeaderView
);
src/routes/UserProfile/Userinfo/Info.js
View file @
ed0b743c
...
...
@@ -73,7 +73,12 @@ export default class Info extends Component {
}
return
(
<
GridContent
>
<
div
className
=
{
styles
.
main
}
>
<
div
className
=
{
styles
.
main
}
ref
=
{(
ref
)
=>
{
this
.
main
=
ref
;
}}
>
<
div
className
=
{
styles
.
leftmenu
}
>
<
Menu
mode
=
{
this
.
state
.
mode
}
...
...
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