update: 修复头部底色切换
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="full-w" :style="{ height: `${height}px` }">
|
<div class="full-w" :style="{ height: `${height}px` }">
|
||||||
<div class="g-header fixed z-20" ref="headerRef" :class="{'home-background': isHome, 'normal-background': !isHome}">
|
<div class="g-header fixed z-20" ref="headerRef" :class="{'home-background': isHome}">
|
||||||
<div class="g-toolbar w-full overflow-hidden" :class="[searchClass, route?.meta?.headerClassName]">
|
<div class="g-toolbar w-full overflow-hidden" :class="[searchClass, route?.meta?.headerClassName]">
|
||||||
<div class="g-toolbar-left flex-shrink items-center">
|
<div class="g-toolbar-left flex-shrink items-center">
|
||||||
<div class="flex-center gap-[16px]" v-if="!isHome">
|
<div class="flex-center gap-[16px]" v-if="!isHome">
|
||||||
@@ -133,6 +133,10 @@ $radius: 4px;
|
|||||||
$add-radius: 48px;
|
$add-radius: 48px;
|
||||||
$header-bg: #fff;
|
$header-bg: #fff;
|
||||||
|
|
||||||
|
.home-background {
|
||||||
|
background-color: #fff0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.g-header {
|
.g-header {
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -140,12 +144,7 @@ $header-bg: #fff;
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.home-background {
|
|
||||||
background-color: #fff0;
|
|
||||||
}
|
|
||||||
.normal-background {
|
|
||||||
background-color: $header-bg;
|
background-color: $header-bg;
|
||||||
}
|
|
||||||
:deep(.g-link) {
|
:deep(.g-link) {
|
||||||
color: $devui-text-weak;
|
color: $devui-text-weak;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user