|
@@ -96,19 +96,21 @@ const changePassword = () => {
|
|
|
</el-menu>
|
|
|
<div class="horizontal-header-right">
|
|
|
<!-- 菜单搜索 -->
|
|
|
- <Search id="header-search" />
|
|
|
+ <!-- <Search id="header-search" /> -->
|
|
|
<!-- 全屏 -->
|
|
|
- <FullScreen id="full-screen" />
|
|
|
+ <!-- <FullScreen id="full-screen" /> -->
|
|
|
<!-- 消息通知 -->
|
|
|
<!-- <Notice id="header-notice" /> -->
|
|
|
<!-- 退出登录 -->
|
|
|
<el-dropdown trigger="click">
|
|
|
- <span class="el-dropdown-link navbar-bg-hover select-none">
|
|
|
+ <!-- <span class="el-dropdown-link navbar-bg-hover select-none user_text"> -->
|
|
|
+ <span class="el-dropdown-link user_text">
|
|
|
<!-- <img :src="userAvatar" :style="avatarsStyle" /> -->
|
|
|
<!-- <p v-if="username" class="dark:text-white">{{ username }}</p> -->
|
|
|
- <p v-if="username" class="user_text">
|
|
|
+ <p v-if="username" class="icon-img">
|
|
|
<el-icon><Avatar /></el-icon>
|
|
|
</p>
|
|
|
+ <p class="ml-0.5">{{ username }}</p>
|
|
|
</span>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu class="logout">
|
|
@@ -140,7 +142,23 @@ const changePassword = () => {
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+// .icon-img {
|
|
|
+// width: 30px;
|
|
|
+// height: 30px;
|
|
|
+// border-radius: 100%;
|
|
|
+// color: blue;
|
|
|
+// font-size: 20px;
|
|
|
+// display: flex;
|
|
|
+// justify-content: center;
|
|
|
+// align-items: center;
|
|
|
+// background: #fff;
|
|
|
+// }
|
|
|
.user_text {
|
|
|
+ line-height: 100%;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.user_text:hover {
|
|
|
color: black;
|
|
|
}
|
|
|
|
|
@@ -168,15 +186,13 @@ const changePassword = () => {
|
|
|
|
|
|
.el-menu-item.is-active {
|
|
|
z-index: 999;
|
|
|
- border-bottom-color: none !important;
|
|
|
+ // border-bottom-color: none !important;
|
|
|
}
|
|
|
|
|
|
.el-menu-item.is-active::before {
|
|
|
position: absolute;
|
|
|
z-index: -1;
|
|
|
- // top: 10px;
|
|
|
- // left: 0em;
|
|
|
- width: 100%;
|
|
|
+ width: 80%;
|
|
|
height: 30px;
|
|
|
content: "";
|
|
|
background-color: #d5e8fb;
|