Răsfoiți Sursa

fix 修复 页面警告

ahao 1 an în urmă
părinte
comite
abf2777b2e
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 4 2
      src/components/DictTag/index.vue

+ 4 - 2
src/components/DictTag/index.vue

@@ -29,11 +29,13 @@
 </template>
 
 <script setup lang="ts">
+import { propTypes } from '@/utils/propTypes';
+
 interface Props {
   options: Array<DictDataOption>;
   value: number | string | Array<number | string>;
-  showValue: boolean;
-  separator: string;
+  showValue?: boolean;
+  separator?: string;
 }
 const props = withDefaults(defineProps<Props>(), {
   showValue: true,