From 506f9446b20a5f82027b289b59de10c85129cc93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com>
Date: Tue, 26 Apr 2022 08:46:58 +0800
Subject: [PATCH] update DictTag/index.vue
---
src/components/DictTag/index.vue | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue
index c812079..70fe324 100644
--- a/src/components/DictTag/index.vue
+++ b/src/components/DictTag/index.vue
@@ -3,10 +3,10 @@
- {{ item.dictLabel }} #{{item.dictValue}}
-
- {{ item.dictLabel }}#{{item.dictValue}}
+ {{ item.dictLabel }} #{{ item.dictValue }}
+
+ {{ item.dictLabel }}#{{ item.dictValue }}
@@ -23,19 +23,19 @@ const props = defineProps({
// 当前的值
value: [Number, String, Array],
showValue: false,
-});
+})
const values = computed(() => {
- if (props.value !== null && typeof props.value !== "undefined") {
- return Array.isArray(props.value) ? props.value : [String(props.value)];
+ if (props.value !== null && typeof props.value !== 'undefined') {
+ return Array.isArray(props.value) ? props.value : [String(props.value)]
} else {
- return [];
+ return []
}
-});
+})
\ No newline at end of file
+