From c4b504848b57812216d2e152f5a224c502a6a311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=E2=82=82=E2=82=82H=E2=82=82=E2=82=85NO=E2=82=86?= Date: Tue, 4 Aug 2026 10:43:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B7=B1=E8=89=B2?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E9=A2=9C=E8=89=B2=E6=B1=A1=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正 CapabilitySourceChip 深色样式的 scoped :global() 选择器范围,避免 Vue 编译后将标签颜色错误应用到整个 PurpleThemeDark 根节点。 保留五种能力来源标签的既有配色,仅将主题祖先与目标子类放入同一全局选择器。 验证:36 项 Dashboard Node 测试通过;pnpm 10.28.2 生产构建通过;构建产物确认 #80cbc4 仅作用于 mixed 标签。 --- .../src/components/shared/CapabilitySourceChip.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard/src/components/shared/CapabilitySourceChip.vue b/dashboard/src/components/shared/CapabilitySourceChip.vue index b09e4ac403..eb68b3377a 100644 --- a/dashboard/src/components/shared/CapabilitySourceChip.vue +++ b/dashboard/src/components/shared/CapabilitySourceChip.vue @@ -57,23 +57,23 @@ defineProps({ color: #00695c !important; } -:global(.v-theme--PurpleThemeDark) .capability-source-chip--plugin { +:global(.v-theme--PurpleThemeDark .capability-source-chip--plugin) { color: #64b5f6 !important; } -:global(.v-theme--PurpleThemeDark) .capability-source-chip--mcp { +:global(.v-theme--PurpleThemeDark .capability-source-chip--mcp) { color: #ffab91 !important; } -:global(.v-theme--PurpleThemeDark) .capability-source-chip--local { +:global(.v-theme--PurpleThemeDark .capability-source-chip--local) { color: #a5d6a7 !important; } -:global(.v-theme--PurpleThemeDark) .capability-source-chip--preset { +:global(.v-theme--PurpleThemeDark .capability-source-chip--preset) { color: #ce93d8 !important; } -:global(.v-theme--PurpleThemeDark) .capability-source-chip--mixed { +:global(.v-theme--PurpleThemeDark .capability-source-chip--mixed) { color: #80cbc4 !important; }