From c7955bcc195a39536dd6ef5bae4144a017a92e28 Mon Sep 17 00:00:00 2001
From: xiaoxian521 <1923740402@qq.com>
Date: Wed, 27 Jul 2022 16:37:06 +0800
Subject: [PATCH 2/3] style: fix
---
src/layout/components/tag/index.scss | 2 --
src/style/element-plus.scss | 2 +-
src/views/login/index.vue | 16 ++++++++++++++++
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/layout/components/tag/index.scss b/src/layout/components/tag/index.scss
index 2a551712d..1fef53b70 100644
--- a/src/layout/components/tag/index.scss
+++ b/src/layout/components/tag/index.scss
@@ -173,8 +173,6 @@
}
.el-dropdown-menu {
- padding: 0;
-
li {
width: 100%;
margin: 0;
diff --git a/src/style/element-plus.scss b/src/style/element-plus.scss
index 9cfd26fa6..8f8ae39fe 100644
--- a/src/style/element-plus.scss
+++ b/src/style/element-plus.scss
@@ -25,7 +25,7 @@
}
.el-dropdown-menu {
- padding: 2px 0 !important;
+ padding: 0 !important;
}
.el-range-separator {
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index ddcb6cc9d..4ba2f0441 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -267,4 +267,20 @@ watch(imgCode, value => {
:deep(.el-input-group__append, .el-input-group__prepend) {
padding: 0;
}
+
+.translation {
+ ::v-deep(.el-dropdown-menu__item) {
+ padding: 5px 40px;
+ }
+
+ .check-zh {
+ position: absolute;
+ left: 20px;
+ }
+
+ .check-en {
+ position: absolute;
+ left: 20px;
+ }
+}
From 0d4fe313b499289e01d97e429f4515728934d5db Mon Sep 17 00:00:00 2001
From: xiaoxian521 <1923740402@qq.com>
Date: Wed, 27 Jul 2022 21:10:36 +0800
Subject: [PATCH 3/3] fix: update
---
src/layout/components/navbar.vue | 2 +-
src/layout/components/search/index.vue | 2 +-
src/layout/components/setting/index.vue | 6 +-
src/layout/hooks/useBoolean.ts | 2 +-
src/layout/hooks/useDataThemeChange.ts | 4 +-
src/layout/hooks/useLayout.ts | 4 +-
src/layout/hooks/useTranslationLang.ts | 2 +-
src/layout/index.vue | 2 +-
src/views/login/index.vue | 320 ++++++++++++------------
9 files changed, 175 insertions(+), 169 deletions(-)
diff --git a/src/layout/components/navbar.vue b/src/layout/components/navbar.vue
index 9d705c7d6..e42ec7e19 100644
--- a/src/layout/components/navbar.vue
+++ b/src/layout/components/navbar.vue
@@ -7,7 +7,7 @@ import avatars from "/@/assets/avatars.jpg";
import Breadcrumb from "./sidebar/breadCrumb.vue";
import { deviceDetection } from "@pureadmin/utils";
import screenfull from "../components/screenfull/index.vue";
-import useTranslationLang from "../hooks/useTranslationLang";
+import { useTranslationLang } from "../hooks/useTranslationLang";
import globalization from "/@/assets/svg/globalization.svg?component";
const {
diff --git a/src/layout/components/search/index.vue b/src/layout/components/search/index.vue
index 86880a186..7b04d9eb2 100644
--- a/src/layout/components/search/index.vue
+++ b/src/layout/components/search/index.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
- 简体中文
-
-
-
-
-
- English
-
-
-
-
-
-
-
-
-
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+ 简体中文
+
+
+
+
+
+ English
+
+
+
+
-