From e451bfcde6e5a47d4b3022e240ffcc0576ebb9a8 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Mon, 26 Jun 2023 11:38:14 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9Dialog=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialog/src/Dialog.vue | 6 +++++- uno.config.ts | 13 ------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/components/Dialog/src/Dialog.vue b/src/components/Dialog/src/Dialog.vue index 73a75e0..ec340c6 100644 --- a/src/components/Dialog/src/Dialog.vue +++ b/src/components/Dialog/src/Dialog.vue @@ -130,7 +130,11 @@ const dialogStyle = computed(() => { .is-hover { &:hover { - color: var(--el-color-primary) !important; + span, + i, + svg { + color: var(--el-color-primary) !important; + } } } diff --git a/uno.config.ts b/uno.config.ts index 44161d9..0645fe6 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -96,19 +96,6 @@ ${selector}:after { background-color: var(--el-border-color); z-index: 3; } -` - } - ], - [ - /^is-hover$/, - ([], { rawSelector }) => { - const selector = e(rawSelector) - return ` -${selector}:hover { - ${selector} span,i,svg { - color: var(--el-color-primary) !important; - } -} ` } ]