From d6f8ef643d31ea196dd3b2fab463fd76a5dab181 Mon Sep 17 00:00:00 2001 From: wang_fan_w <2547096351@qq.com> Date: Sat, 6 Apr 2024 18:45:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20header=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 +- src/layout/components/Header/index.vue | 61 ++++++++++++++++++++++++-- src/layout/components/Tabs/index.vue | 13 +++++- src/style/global-hover.scss | 9 ---- src/style/global-theme.scss | 4 ++ src/style/global-transition.scss | 9 ++++ src/style/index.scss | 2 +- 7 files changed, 84 insertions(+), 18 deletions(-) delete mode 100644 src/style/global-hover.scss create mode 100644 src/style/global-transition.scss diff --git a/index.html b/index.html index dde16aa..40dcdf5 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,9 @@ - + - Vite + Vue + TS + DC-Admin
diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 0653e19..049d51c 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -70,7 +70,43 @@ -
+ + +
+ + admin +
+ +
+
+ +
@@ -122,13 +158,30 @@ import Tom from "@/assets/img/tom.jpg"; color: $color-text-1; } - .my_image { - width: 32px; + .my_setting { + // width: 32px; height: 32px; - border-radius: 50%; + // border-radius: 50%; margin-left: $margin; overflow: hidden; + display: flex; + justify-content: space-between; + align-items: center; + .my_image { + border-radius: 50%; + margin-right: 8px; + } + .icon_down { + transform: rotate(0deg); + margin: 0 0 0 5px; + transition: transform 0.2s; + } } } } +:deep(.arco-dropdown-open) { + .icon_down { + transform: rotate(180deg) !important; + } +} diff --git a/src/layout/components/Tabs/index.vue b/src/layout/components/Tabs/index.vue index 314cf62..70a2b47 100644 --- a/src/layout/components/Tabs/index.vue +++ b/src/layout/components/Tabs/index.vue @@ -13,7 +13,7 @@
-
+