Commit f08cfb47 authored by dcy's avatar dcy

nav 图片修改

parent 3d4fdb40
<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;
......
<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' },
......
...@@ -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: -20px; right: -16px;
top: 25px; top: 10px;
font-size: 12px; font-size: 14px;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment