From 522e358eafce183efdc960c27d9746e9757416a5 Mon Sep 17 00:00:00 2001 From: Lei Chen <598109390@qq.com> Date: Wed, 20 Nov 2024 11:02:28 +0800 Subject: [PATCH] =?UTF-8?q?Update=20Breadcrumb.vue=20=20=E9=9D=A2=E5=8C=85?= =?UTF-8?q?=E5=B1=91=20css=20=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 面包屑 css 处理不起作用 --- src/layout/components/Breadcrumb/src/Breadcrumb.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layout/components/Breadcrumb/src/Breadcrumb.vue b/src/layout/components/Breadcrumb/src/Breadcrumb.vue index 4079a066..80770a85 100644 --- a/src/layout/components/Breadcrumb/src/Breadcrumb.vue +++ b/src/layout/components/Breadcrumb/src/Breadcrumb.vue @@ -92,7 +92,7 @@ export default defineComponent({ $prefix-cls: #{$elNamespace}-breadcrumb; .#{$prefix-cls} { - :deep(&__item) { + :deep(.#{$prefix-cls}__item) { display: flex; .#{$prefix-cls}__inner { display: flex; @@ -105,7 +105,7 @@ $prefix-cls: #{$elNamespace}-breadcrumb; } } - :deep(&__item):not(:last-child) { + :deep(.#{$prefix-cls}__item):not(:last-child) { .#{$prefix-cls}__inner { color: var(--top-header-text-color); @@ -115,7 +115,7 @@ $prefix-cls: #{$elNamespace}-breadcrumb; } } - :deep(&__item):last-child { + :deep(.#{$prefix-cls}__item):last-child { .#{$prefix-cls}__inner { display: flex; align-items: center;