From 48ff92faf7985b08850b38e2736495d40bcd3ed0 Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 24 Apr 2023 20:16:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8D=20element=20?= =?UTF-8?q?=E7=9A=84=E6=A0=87=E7=AD=BE=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictTag/src/DictTag.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue index 2f17cf55..f74ed5b6 100644 --- a/src/components/DictTag/src/DictTag.vue +++ b/src/components/DictTag/src/DictTag.vue @@ -35,8 +35,12 @@ export default defineComponent({ } dictOptions.forEach((dict: DictDataType) => { if (dict.value === value) { - if (dict.colorType + '' === 'primary' || dict.colorType + '' === 'info') { + if (dict.colorType + '' === 'primary') { dict.colorType = 'processing' + } else if (dict.colorType + '' === 'danger') { + dict.colorType = 'error' + } else if (dict.colorType + '' === 'info') { + dict.colorType = 'default' } dictData.value = dict }