Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
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
ReactWeb5
CivManage
Commits
9e688003
Commit
9e688003
authored
Nov 03, 2020
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(globalheader): 修改头部展示内容
parent
33ee30b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
28 deletions
+29
-28
AvatarDropdown.js
src/components/GlobalHeader/AvatarDropdown.js
+3
-4
RightContent.js
src/components/GlobalHeader/RightContent.js
+22
-20
index.js
src/pages/user/login/index.js
+4
-4
No files found.
src/components/GlobalHeader/AvatarDropdown.js
View file @
9e688003
...
...
@@ -7,7 +7,7 @@ import { Avatar, Menu, Spin } from 'antd';
import
React
from
'react'
;
import
HeaderDropdown
from
'../HeaderDropdown'
;
import
styles
from
'./index.less'
;
import
logo
from
'@/assets/images/logo/panda-logo2.png'
;
class
AvatarDropdown
extends
React
.
Component
{
/* eslint-disable no-unused-vars */
onMenuClick
=
event
=>
{};
...
...
@@ -15,9 +15,8 @@ class AvatarDropdown extends React.Component {
render
()
{
const
{
currentUser
=
{
avatar
:
'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png'
,
name
:
'Serati Ma'
,
avatar
:
logo
,
name
:
'测试人员'
,
},
}
=
this
.
props
;
const
menuHeaderDropdown
=
(
...
...
src/components/GlobalHeader/RightContent.js
View file @
9e688003
...
...
@@ -23,26 +23,28 @@ const GlobalHeaderRight = props => {
className
=
{
`
${
styles
.
action
}
${
styles
.
search
}
`
}
placeholder
=
"站内搜索"
defaultValue
=
""
options
=
{[
{
label
:
<
a
href
=
"https://umijs.org/zh/guide/umi-ui.html"
>
umi
ui
<
/a>
,
value
:
'umi ui'
,
},
{
label
:
<
a
href
=
"next.ant.design"
>
Ant
Design
<
/a>
,
value
:
'Ant Design'
,
},
{
label
:
<
a
href
=
"https://protable.ant.design/"
>
Pro
Table
<
/a>
,
value
:
'Pro Table'
,
},
{
label
:
<
a
href
=
"https://prolayout.ant.design/"
>
Pro
Layout
<
/a>
,
value
:
'Pro Layout'
,
},
]}
options
=
{
[
// {
// label: <a href="https://umijs.org/zh/guide/umi-ui.html">umi ui</a>,
// value: 'umi ui',
// },
// {
// label: <a href="next.ant.design">Ant Design</a>,
// value: 'Ant Design',
// },
// {
// label: <a href="https://protable.ant.design/">Pro Table</a>,
// value: 'Pro Table',
// },
// {
// label: <a href="https://prolayout.ant.design/">Pro Layout</a>,
// value: 'Pro Layout',
// },
]
}
/
>
<
Tooltip
title
=
"使用文档"
>
{
/*
<Tooltip title="使用文档">
<a
style={{
color: 'inherit',
...
...
@@ -54,7 +56,7 @@ const GlobalHeaderRight = props => {
>
<QuestionCircleOutlined />
</a>
<
/Tooltip
>
</Tooltip>
*/
}
<
NoticeIcon
className
=
{
styles
.
action
}
/
>
<
Avatar
/>
{
/* <SelectLang className={styles.action} /> */
}
...
...
src/pages/user/login/index.js
View file @
9e688003
...
...
@@ -54,7 +54,7 @@ const Login = props => {
)}
<
UserName
name
=
"userName"
placeholder
=
"
用户名: admin or user
"
placeholder
=
"
请输入用户名
"
rules
=
{[
{
required
:
true
,
...
...
@@ -64,7 +64,7 @@ const Login = props => {
/
>
<
Password
name
=
"password"
placeholder
=
"
密码: ant.design
"
placeholder
=
"
请输入密码
"
rules
=
{[
{
required
:
true
,
...
...
@@ -79,13 +79,13 @@ const Login = props => {
>
自动登录
<
/Checkbox
>
<
a
{
/*
<a
style={{
float: 'right',
}}
>
忘记密码
<
/a
>
</a>
*/
}
<
/div
>
<
Submit
loading
=
{
submitting
}
>
登录
<
/Submit
>
<
/LoginForm
>
...
...
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