Merge pull request #8669 from dataease/pr@dev-v2@fix_head_logo

style: 浅色背景下左上方logo色值错误
This commit is contained in:
fit2cloud-chenyw 2024-03-25 10:31:28 +08:00 committed by GitHub
commit a7564465b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 119 deletions

View File

@ -103,7 +103,7 @@ onMounted(() => {
}
.logo {
color: var(--ed-color-black) !important;
color: #3371ff !important;
}
}
.header-flex {

View File

@ -94,7 +94,7 @@ const navigate = computed(() => appearanceStore.getNavigate)
.system,
.de-logo {
color: var(--ed-color-black) !important;
color: #3371ff !important;
}
}
.header-flex {

View File

@ -1,117 +0,0 @@
<script lang="ts" setup>
import { computed } from 'vue'
import { ElHeader } from 'element-plus-secondary'
import { useRouter } from 'vue-router'
import AccountOperator from '@/layout/components/AccountOperator.vue'
import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
const appearanceStore = useAppearanceStoreWithOut()
const { push } = useRouter()
const backToMain = () => {
push('/workbranch/index')
}
const navigateBg = computed(() => appearanceStore.getNavigateBg)
const navigate = computed(() => appearanceStore.getNavigate)
</script>
<template>
<el-header
class="header-flex system-header"
:class="{ 'header-light': navigateBg && navigateBg === 'light' }"
>
<img class="logo" v-if="navigate" :src="navigate" alt="" />
<Icon v-else className="logo" name="logo"></Icon>
<el-divider direction="vertical" />
<span class="system">模板中心</span>
<div class="operate-setting">
<span @click="backToMain" class="work-bar flex-align-center">
<el-icon>
<Icon name="icon_left_outlined"></Icon>
</el-icon>
<span class="work">返回工作台</span>
</span>
<AccountOperator />
</div>
</el-header>
</template>
<style lang="less" scoped>
.system-header {
font-family: '阿里巴巴普惠体 3.0 55 Regular L3';
.logo {
width: 134px;
height: 34px;
}
.ed-divider {
margin: 0 24px;
border-color: rgba(255, 255, 255, 0.3);
}
.system {
color: #fff;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 24px;
}
.work-bar {
color: rgba(255, 255, 255, 0.8);
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
cursor: pointer;
.ed-icon {
margin-right: 4px;
font-size: 16px;
}
}
.avatar {
margin: 0 -7px 0 20px !important;
}
}
.header-light {
background-color: #ffffff !important;
box-shadow: 0px 0.5px 0px 0px #1f232926 !important;
:deep(.work-bar) {
color: var(--ed-color-black) !important;
}
}
.header-flex {
display: flex;
align-items: center;
height: 56px;
background-color: #050e21;
padding: 0 24px;
.operate-setting {
margin-left: auto;
display: flex;
align-items: center;
&:focus {
outline: none;
}
}
}
</style>
<style lang="less">
.header-flex {
.operate-setting {
.ed-icon {
cursor: pointer;
color: rgba(255, 255, 255, 0.8);
font-size: 18px;
}
}
}
.header-light {
.operate-setting {
.ed-icon {
color: var(--ed-color-black) !important;
}
}
}
</style>