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 {
...
@@ -23,11 +23,8 @@ class HeaderView extends PureComponent {
.
removeEventListener
(
'
scroll
'
,
this
.
handScroll
);
.
removeEventListener
(
'
scroll
'
,
this
.
handScroll
);
}
}
getHeadWidth
=
()
=>
{
getHeadWidth
=
()
=>
{
if
(
const
{
fixedHeader
,
layout
,
fixSiderbar
}
=
this
.
props
.
setting
;
!
this
.
props
.
fixedHeader
||
if
(
!
fixedHeader
||
layout
===
'
topmenu
'
||
fixSiderbar
)
{
this
.
props
.
layout
===
'
topmenu
'
||
this
.
props
.
fixSiderbar
)
{
return
'
100%
'
;
return
'
100%
'
;
}
}
if
(
!
this
.
props
.
collapsed
)
{
if
(
!
this
.
props
.
collapsed
)
{
...
@@ -93,14 +90,8 @@ class HeaderView extends PureComponent {
...
@@ -93,14 +90,8 @@ class HeaderView extends PureComponent {
}
}
};
};
render
()
{
render
()
{
const
{
const
{
isMobile
,
handleMenuCollapse
}
=
this
.
props
;
logo
,
const
{
silderTheme
,
layout
,
fixedHeader
}
=
this
.
props
.
setting
;
isMobile
,
handleMenuCollapse
,
silderTheme
,
layout
,
fixedHeader
,
}
=
this
.
props
;
const
isTop
=
layout
===
'
topmenu
'
;
const
isTop
=
layout
===
'
topmenu
'
;
const
HeaderDom
=
this
.
state
.
visible
?
(
const
HeaderDom
=
this
.
state
.
visible
?
(
<
Header
<
Header
...
@@ -109,22 +100,19 @@ class HeaderView extends PureComponent {
...
@@ -109,22 +100,19 @@ class HeaderView extends PureComponent {
>
>
{
isTop
&&
!
isMobile
?
(
{
isTop
&&
!
isMobile
?
(
<
TopNavHeader
<
TopNavHeader
logo
=
{
logo
}
theme
=
{
silderTheme
}
theme
=
{
silderTheme
}
mode
=
"
horizontal
"
mode
=
"
horizontal
"
Authorized
=
{
Authorized
}
Authorized
=
{
Authorized
}
isMobile
=
{
isMobile
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onCollapse
=
{
handleMenuCollapse
}
onCollapse
=
{
handleMenuCollapse
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onMenuClick
=
{
this
.
handleMenuClick
}
onMenuClick
=
{
this
.
handleMenuClick
}
onNoticeVisibleChange
=
{
this
.
handleNoticeVisibleChange
}
onNoticeVisibleChange
=
{
this
.
handleNoticeVisibleChange
}
{...
this
.
props
}
{...
this
.
props
}
/
>
/
>
)
:
(
)
:
(
<
GlobalHeader
<
GlobalHeader
logo
=
{
logo
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onCollapse
=
{
handleMenuCollapse
}
onCollapse
=
{
handleMenuCollapse
}
onNoticeClear
=
{
this
.
handleNoticeClear
}
onMenuClick
=
{
this
.
handleMenuClick
}
onMenuClick
=
{
this
.
handleMenuClick
}
onNoticeVisibleChange
=
{
this
.
handleNoticeVisibleChange
}
onNoticeVisibleChange
=
{
this
.
handleNoticeVisibleChange
}
{...
this
.
props
}
{...
this
.
props
}
...
@@ -145,9 +133,5 @@ export default connect(({ user, global, setting, loading }) => ({
...
@@ -145,9 +133,5 @@ export default connect(({ user, global, setting, loading }) => ({
collapsed
:
global
.
collapsed
,
collapsed
:
global
.
collapsed
,
fetchingNotices
:
loading
.
effects
[
'
global/fetchNotices
'
],
fetchingNotices
:
loading
.
effects
[
'
global/fetchNotices
'
],
notices
:
global
.
notices
,
notices
:
global
.
notices
,
layout
:
setting
.
layout
,
setting
,
silderTheme
:
setting
.
silderTheme
,
fixedHeader
:
setting
.
fixedHeader
,
fixSiderbar
:
setting
.
fixSiderbar
,
autoHideHeader
:
setting
.
autoHideHeader
,
}))(
HeaderView
);
}))(
HeaderView
);
src/routes/UserProfile/Userinfo/Info.js
View file @
ed0b743c
...
@@ -73,7 +73,12 @@ export default class Info extends Component {
...
@@ -73,7 +73,12 @@ export default class Info extends Component {
}
}
return
(
return
(
<
GridContent
>
<
GridContent
>
<
div
className
=
{
styles
.
main
}
>
<
div
className
=
{
styles
.
main
}
ref
=
{(
ref
)
=>
{
this
.
main
=
ref
;
}}
>
<
div
className
=
{
styles
.
leftmenu
}
>
<
div
className
=
{
styles
.
leftmenu
}
>
<
Menu
<
Menu
mode
=
{
this
.
state
.
mode
}
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