From 56c35b920e1a7d7a3cd984b35ebd2ff08dbbd2e0 Mon Sep 17 00:00:00 2001 From: molong Date: Fri, 16 Jan 2026 11:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boot.js | 10 ++++++++++ src/layouts/components/userbar.vue | 28 ++++++++++++++-------------- src/layouts/index.vue | 17 ++++++++--------- src/main.js | 2 ++ src/pages/home/index.vue | 1 - 5 files changed, 34 insertions(+), 24 deletions(-) create mode 100644 src/boot.js diff --git a/src/boot.js b/src/boot.js new file mode 100644 index 0000000..1afecda --- /dev/null +++ b/src/boot.js @@ -0,0 +1,10 @@ +import * as AIcons from '@ant-design/icons-vue' + +export default { + install(app) { + + for (let icon in AIcons) { + app.component(`${icon}`, AIcons[icon]) + } + } +} diff --git a/src/layouts/components/userbar.vue b/src/layouts/components/userbar.vue index 3a1a7c0..a97ee3a 100644 --- a/src/layouts/components/userbar.vue +++ b/src/layouts/components/userbar.vue @@ -1,5 +1,18 @@ - - - - - - - - - - - - -
@@ -185,7 +185,7 @@ const changeThemeColor = (color) => { align-items: center; gap: 8px; cursor: pointer; - padding: 4px 12px; + padding: 0 12px; border-radius: 4px; transition: background-color 0.3s; diff --git a/src/layouts/index.vue b/src/layouts/index.vue index cc652b6..ad5223a 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -14,7 +14,7 @@
-
@@ -44,7 +44,7 @@
-
@@ -85,9 +85,10 @@