From c085594f51f3f0806d86124f15688beeb3648a67 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Tue, 25 Aug 2026 08:41:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E8=8F=9C=E5=8D=95=20fa=20=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E5=AE=BD=E5=BA=A6=E6=94=B9=E7=94=A8=20--el-menu-icon-?= =?UTF-8?q?width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .gerp-menu-icon 宽度 1em→var(--el-menu-icon-width,24px),与 EP el-icon 菜单图标盒宽一致,左间距/文字起点统一 --- src/layouts/DefaultLayout.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/DefaultLayout.vue b/src/layouts/DefaultLayout.vue index f8a2b0c..b9d52f2 100644 --- a/src/layouts/DefaultLayout.vue +++ b/src/layouts/DefaultLayout.vue @@ -740,7 +740,8 @@ const isFaIcon = (icon: string | undefined | null): boolean => { // FontAwesome 图标对齐 el-icon 表现(菜单 Icon 字段可能存 FA 类名) :deep(.gerp-menu-icon) { display: inline-block; - width: 1em; + // 宽度对齐 EP 菜单图标(--el-menu-icon-width),避免混排时文字左起点不一致 + width: var(--el-menu-icon-width, 24px); margin-right: 5px; font-size: 18px; text-align: center;