From 2f8a257efd2b64dc40666b0d332edb7824a9768d Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期日, 27 四月 2025 09:58:29 +0800
Subject: [PATCH] remove all semicolons
---
src/components/DictTag/index.vue | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue
index 3884e46..5e70502 100644
--- a/src/components/DictTag/index.vue
+++ b/src/components/DictTag/index.vue
@@ -26,7 +26,7 @@
<script setup>
// 璁板綍鏈尮閰嶇殑椤�
-const unmatchArray = ref([]);
+const unmatchArray = ref([])
const props = defineProps({
// 鏁版嵁
@@ -45,15 +45,15 @@
type: String,
default: ",",
}
-});
+})
const values = computed(() => {
- if (props.value === null || typeof props.value === 'undefined' || props.value === '') return [];
- return Array.isArray(props.value) ? props.value.map(item => '' + item) : String(props.value).split(props.separator);
-});
+ if (props.value === null || typeof props.value === 'undefined' || props.value === '') return []
+ return Array.isArray(props.value) ? props.value.map(item => '' + item) : String(props.value).split(props.separator)
+})
const unmatch = computed(() => {
- unmatchArray.value = [];
+ unmatchArray.value = []
// 娌℃湁value涓嶆樉绀�
if (props.value === null || typeof props.value === 'undefined' || props.value === '' || !Array.isArray(props.options) || props.options.length === 0) return false
// 浼犲叆鍊间负鏁扮粍
@@ -65,13 +65,13 @@
}
})
return unmatch // 杩斿洖鏍囧織鐨勫��
-});
+})
function handleArray(array) {
- if (array.length === 0) return "";
+ if (array.length === 0) return ""
return array.reduce((pre, cur) => {
- return pre + " " + cur;
- });
+ return pre + " " + cur
+ })
}
</script>
--
Gitblit v1.9.3