From 890a10f2031281556904be4c0aed6084c6350384 Mon Sep 17 00:00:00 2001 From: Hefeng <1057605508@qq.com> Date: Thu, 31 Aug 2023 12:12:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20fui-tag=20=20=E7=A9=BA=E5=BF=83?= =?UTF-8?q?=E5=8A=A0=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/firstui/fui-tag/fui-tag.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/firstui/fui-tag/fui-tag.vue b/components/firstui/fui-tag/fui-tag.vue index 73cd064..5e70dac 100644 --- a/components/firstui/fui-tag/fui-tag.vue +++ b/components/firstui/fui-tag/fui-tag.vue @@ -115,7 +115,6 @@ data() { const app = uni && uni.$fui && uni.$fui.color; return { - // #ifdef APP-NVUE dark: { primary: (app && app.primary) || '#465CFF', success: (app && app.success) || '#09BE4F', @@ -123,12 +122,14 @@ danger: (app && app.danger) || '#FF2B2B', purple: (app && app.purple) || '#6831FF', } - // #endif } }, computed: { getBackground() { let background = this.background + if (!background && this.theme === 'plain') { + background = `rgba(${hexToRGB(this.dark[this.type])},.05)!important` + } // #ifdef APP-NVUE if (!background) { switch (this.theme) {