From c65536ee6fbda877e9476e7421d851900e6a76b6 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期四, 06 四月 2023 11:19:31 +0800
Subject: [PATCH] update 优化弹窗后导航栏偏移的问题(I3YMWW)

---
 src/components/DictTag/index.vue |   37 ++++++++++++++++++++-----------------
 1 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue
index c03a1a6..827a7af 100644
--- a/src/components/DictTag/index.vue
+++ b/src/components/DictTag/index.vue
@@ -7,7 +7,8 @@
           :key="item.value"
           :index="index"
           :class="item.elTagClass"
-        >{{ item.label }}</span>
+          >{{ item.label }}</span
+        >
         <el-tag
           v-else
           :disable-transitions="true"
@@ -15,35 +16,37 @@
           :index="index"
           :type="item.elTagType === 'primary' ? '' : item.elTagType"
           :class="item.elTagClass"
-        >{{ item.label }}</el-tag>
+          >{{ item.label }}</el-tag
+        >
       </template>
     </template>
   </div>
 </template>
 
-<script setup>
+<script setup lang="ts">
+import { PropType } from 'vue';
+
 const props = defineProps({
-  // 鏁版嵁
-  options: {
-    type: Array,
-    default: null,
-  },
-  // 褰撳墠鐨勫��
-  value: [Number, String, Array],
+    // 鏁版嵁
+    options: {
+        type: Array as PropType<DictDataOption[]>,
+        default: null,
+    },
+    // 褰撳墠鐨勫��
+    value: [Number, String, Array],
 })
 
 const values = computed(() => {
-  if (props.value !== null && typeof props.value !== 'undefined') {
-    return Array.isArray(props.value) ? props.value : [String(props.value)];
-  } else {
-    return [];
-  }
+    if (props.value !== null && typeof props.value !== 'undefined') {
+        return Array.isArray(props.value) ? props.value : [String(props.value)];
+    } else {
+        return [];
+    }
 })
-
 </script>
 
 <style scoped>
 .el-tag + .el-tag {
   margin-left: 10px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3