From dda5e79a774a89560b3f506ab2feebb1d62e29e1 Mon Sep 17 00:00:00 2001
From: zhaojisen <1301338853@qq.com>
Date: Thu, 9 May 2024 19:41:25 +0800
Subject: [PATCH] =?UTF-8?q?style:=20=E6=95=B4=E5=90=88=20navheader=20?=
=?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/NavHeader/Organization.vue | 101 +++----
src/layout/components/NavHeader/index.vue | 266 ++++++++++--------
src/styles/index.scss | 6 +
3 files changed, 194 insertions(+), 179 deletions(-)
diff --git a/src/layout/components/NavHeader/Organization.vue b/src/layout/components/NavHeader/Organization.vue
index 708223856..dc39d23dd 100644
--- a/src/layout/components/NavHeader/Organization.vue
+++ b/src/layout/components/NavHeader/Organization.vue
@@ -3,7 +3,7 @@
:disabled="disabled"
:placeholder="$tc('Select')"
:value="currentOrgId"
- class="org-select organization"
+ class="org-select"
filterable
popper-class="switch-org"
@change="changeOrg"
@@ -130,24 +130,49 @@ export default {
@import '~@/styles/variables.scss';
$height: 28px;
-.org-select {
- padding: 0 10px 0 18px;
- background-color: #293846;
- color: white;
- font-weight: 600;
- font-size: 15px;
- //border-top: solid 1px rgb(47, 64, 80);
- ::v-deep .el-input {
- input.el-input__inner {
- line-height: $height;
- height: $height;
- background: none;
- border: none;
- padding-left: 20px;
+::v-deep .el-input {
+ .el-input__inner {
+ height: 30px;
+ line-height: 30px;
+ background: none;
+ border: none;
+ padding-left: 20px;
+ }
+
+ .el-input__prefix {
+ left: 0;
+ }
+
+ .el-input__suffix > .el-input__suffix-inner i {
+ color: #fff;
+ }
+}
+
+.el-select-dropdown.switch-org {
+ border-radius: 4px;
+
+ .option-group {
+ max-width: 400px;
+
+ ::v-deep .el-select-group__title {
+ color: var(--color-icon-primary);
+ padding-left: 15px;
+ font-size: 12px;
+ line-height: 30px;
+ }
+
+ ::v-deep .el-select-dropdown__item {
+ padding: 0 15px;
+ line-height: 30px;
+ height: 30px;
}
}
}
+.org-select >>> .el-input.is-disabled .el-input__inner {
+ color: #ffffff !important;
+}
+
.icon {
cursor: pointer;
}
@@ -158,50 +183,4 @@ $height: 28px;
border: .5px solid #FFF;
opacity: 0.4;
}
-
-.organization {
- height: $height;
- line-height: $height;
- background: transparent;
- color: #FFF;
- font-size: 13px;
-
- & >>> .el-input__prefix {
- left: 0;
- }
-
- & >>> .el-input--prefix .el-input__inner {
- line-height: $height !important;
- height: $height !important;
- }
-
- & >>> .el-input__icon {
- color: #606266;
- line-height: $height;
- }
-
- & >>> .el-input .el-select__caret {
- color: #FFF;
- }
-}
-
-.option-group {
- max-width: 400px;
-
- & >>> .el-select-group__title {
- color: #909399 !important;
- padding-left: 15px;
- font-size: 12px;
- line-height: $height;
- }
-
- &>>> .el-select-dropdown__item {
- line-height: 30px;
- height: 30px;
- }
-}
-
-.org-select >>> .el-input.is-disabled .el-input__inner {
- color: #ffffff !important;
-}
diff --git a/src/layout/components/NavHeader/index.vue b/src/layout/components/NavHeader/index.vue
index 3b60c0003..429b6659e 100644
--- a/src/layout/components/NavHeader/index.vue
+++ b/src/layout/components/NavHeader/index.vue
@@ -38,7 +38,7 @@