From 26ac896f5c100e05b3306c0c3db9212cb889ccd8 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Fri, 11 Oct 2024 08:08:19 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/components/dict/src/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/components/dict/src/index.vue b/apps/web-antd/src/components/dict/src/index.vue index 2505d19b..6889ef1b 100644 --- a/apps/web-antd/src/components/dict/src/index.vue +++ b/apps/web-antd/src/components/dict/src/index.vue @@ -41,11 +41,14 @@ const label = computed(() => { const current = props.dicts.find((item) => item.dictValue == props.value); return current?.dictLabel ?? 'unknown'; }); + +const tagComponent = computed(() => (color.value ? Tag : 'div'));