Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
f08cfb47
Commit
f08cfb47
authored
Jun 30, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nav 图片修改
parent
3d4fdb40
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
16 deletions
+39
-16
layout-logo.png
src/assets/images/layout-logo.png
+0
-0
search-nav.png
src/assets/images/search-nav.png
+0
-0
unread-message.png
src/assets/images/unread-message.png
+0
-0
index.vue
src/components/HeaderSearch/index.vue
+5
-3
index.vue
src/components/SizeSelect/index.vue
+4
-1
Navbar.vue
src/layout/components/Navbar.vue
+30
-12
No files found.
src/assets/images/layout-logo.png
0 → 100644
View file @
f08cfb47
587 Bytes
src/assets/images/search-nav.png
0 → 100644
View file @
f08cfb47
1.23 KB
src/assets/images/unread-message.png
0 → 100644
View file @
f08cfb47
1021 Bytes
src/components/HeaderSearch/index.vue
View file @
f08cfb47
<
template
>
<
template
>
<div
:class=
"
{'show':show}" class="header-search">
<div
:class=
"
{'show':show}" class="header-search">
<svg-icon
class-name=
"search-icon"
icon-class=
"search"
@
click.stop=
"click"
/>
<!--
<svg-icon
class-name=
"search-icon"
icon-class=
"search"
@
click.stop=
"click"
/>
-->
<el-image
:src=
"searchNav"
@
click.stop=
"click"
style=
"width: 18px;height: 19px;vertical-align: middle;"
>
</el-image>
<el-select
<el-select
ref=
"headerSearchSelect"
ref=
"headerSearchSelect"
v-model=
"search"
v-model=
"search"
...
@@ -22,6 +23,7 @@
...
@@ -22,6 +23,7 @@
// make search results more in line with expectations
// make search results more in line with expectations
import
Fuse
from
'
fuse.js/dist/fuse.min.js
'
import
Fuse
from
'
fuse.js/dist/fuse.min.js
'
import
path
from
'
path
'
import
path
from
'
path
'
import
searchNav
from
'
@/assets/images/search-nav.png
'
export
default
{
export
default
{
name
:
'
HeaderSearch
'
,
name
:
'
HeaderSearch
'
,
...
@@ -31,7 +33,8 @@ export default {
...
@@ -31,7 +33,8 @@ export default {
options
:
[],
options
:
[],
searchPool
:
[],
searchPool
:
[],
show
:
false
,
show
:
false
,
fuse
:
undefined
fuse
:
undefined
,
searchNav
}
}
},
},
computed
:
{
computed
:
{
...
@@ -150,7 +153,6 @@ export default {
...
@@ -150,7 +153,6 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.header-search
{
.header-search
{
font-size
:
0
!
important
;
font-size
:
0
!
important
;
.search-icon
{
.search-icon
{
cursor
:
pointer
;
cursor
:
pointer
;
font-size
:
18px
;
font-size
:
18px
;
...
...
src/components/SizeSelect/index.vue
View file @
f08cfb47
<
template
>
<
template
>
<el-dropdown
trigger=
"click"
@
command=
"handleSetSize"
>
<el-dropdown
trigger=
"click"
@
command=
"handleSetSize"
>
<div>
<div>
<svg-icon
class-name=
"size-icon"
icon-class=
"size"
/>
<!--
<svg-icon
class-name=
"size-icon"
icon-class=
"size"
/>
-->
<el-image
style=
"width: 21px; height: 16px"
:src=
"layoutLogo"
></el-image>
</div>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-for=
"item of sizeOptions"
:key=
"item.value"
:disabled=
"size===item.value"
:command=
"item.value"
>
<el-dropdown-item
v-for=
"item of sizeOptions"
:key=
"item.value"
:disabled=
"size===item.value"
:command=
"item.value"
>
...
@@ -13,9 +14,11 @@
...
@@ -13,9 +14,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
layoutLogo
from
'
@/assets/images/layout-logo.png
'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
layoutLogo
,
sizeOptions
:
[
sizeOptions
:
[
{
label
:
'
Default
'
,
value
:
'
default
'
},
{
label
:
'
Default
'
,
value
:
'
default
'
},
{
label
:
'
Medium
'
,
value
:
'
medium
'
},
{
label
:
'
Medium
'
,
value
:
'
medium
'
},
...
...
src/layout/components/Navbar.vue
View file @
f08cfb47
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<div
class=
"right-menu"
>
<div
class=
"right-menu"
>
<template
v-if=
"device!=='mobile'"
>
<template
v-if=
"device!=='mobile'"
>
<el-badge
:value=
"notReadTotal"
class=
"right-menu-item"
>
<el-badge
:value=
"notReadTotal"
class=
"right-menu-item
badge
"
>
<el-button
size=
"small"
@
click=
"notRead"
>
未读消息
</el-button
>
<el-image
style=
"width: 22px;height: 20px;"
:src=
"unreadMessage"
></el-image
>
</el-badge>
</el-badge>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</
template
>
</
template
>
<el-select
v-model=
"locale"
placeholder=
"语言"
class=
"right-menu-item
"
style=
"width: 116px;"
@
change=
"localeChange"
>
<el-select
v-model=
"locale"
placeholder=
"语言"
class=
"right-menu-item
select-nav"
@
change=
"localeChange"
>
<el-option
v-for=
"dict in langDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
<el-option
v-for=
"dict in langDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
...
@@ -67,10 +67,12 @@ import RuoYiGit from '@/components/RuoYi/Git'
...
@@ -67,10 +67,12 @@ import RuoYiGit from '@/components/RuoYi/Git'
import
RuoYiDoc
from
'
@/components/RuoYi/Doc
'
import
RuoYiDoc
from
'
@/components/RuoYi/Doc
'
import
{
getLocale
,
saveLocale
}
from
"
@/utils/db
"
;
import
{
getLocale
,
saveLocale
}
from
"
@/utils/db
"
;
import
{
LangEnum
}
from
"
@/utils/constants
"
;
import
{
LangEnum
}
from
"
@/utils/constants
"
;
import
unreadMessage
from
"
@/assets/images/unread-message.png
"
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
unreadMessage
,
locale
:
getLocale
(),
locale
:
getLocale
(),
// 枚举
// 枚举
langDatas
:
LangEnum
.
LANG
,
langDatas
:
LangEnum
.
LANG
,
...
@@ -176,7 +178,12 @@ export default {
...
@@ -176,7 +178,12 @@ export default {
&
:focus
{
&
:focus
{
outline
:
none
;
outline
:
none
;
}
}
::v-deep
.el-badge
{
.el-badge__content
{
top
:
13px
;
right
:
15px
;
}
}
.right-menu-item
{
.right-menu-item
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
0
8px
;
padding
:
0
8px
;
...
@@ -184,7 +191,7 @@ export default {
...
@@ -184,7 +191,7 @@ export default {
font-size
:
18px
;
font-size
:
18px
;
color
:
#5a5e66
;
color
:
#5a5e66
;
vertical-align
:
text-bottom
;
vertical-align
:
text-bottom
;
margin-right
:
6px
;
&
.hover-effect
{
&
.hover-effect
{
cursor
:
pointer
;
cursor
:
pointer
;
transition
:
background
.3s
;
transition
:
background
.3s
;
...
@@ -194,7 +201,17 @@ export default {
...
@@ -194,7 +201,17 @@ export default {
}
}
}
}
}
}
::v-deep
.select-nav
{
width
:
110px
;
height
:
32px
;
vertical-align
:
top
;
.el-input__inner
{
font-size
:
14px
;
font-family
:
PingFang
SC
;
font-weight
:
400
;
color
:
#D9D9D9
;
}
}
.avatar-container
{
.avatar-container
{
margin-right
:
30px
;
margin-right
:
30px
;
...
@@ -204,17 +221,18 @@ export default {
...
@@ -204,17 +221,18 @@ export default {
.user-avatar
{
.user-avatar
{
cursor
:
pointer
;
cursor
:
pointer
;
width
:
40px
;
width
:
32px
;
height
:
40px
;
height
:
32px
;
border-radius
:
10px
;
border-radius
:
50%
;
vertical-align
:
sub
;
}
}
.el-icon-caret-bottom
{
.el-icon-caret-bottom
{
cursor
:
pointer
;
cursor
:
pointer
;
position
:
absolute
;
position
:
absolute
;
right
:
-
20
px
;
right
:
-
16
px
;
top
:
25
px
;
top
:
10
px
;
font-size
:
1
2
px
;
font-size
:
1
4
px
;
}
}
}
}
}
}
...
...
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