Kaynağa Gözat

类型修改

tongshangming 3 yıl önce
ebeveyn
işleme
b4731c09bb

+ 1 - 1
src/components/GlobalFooter.vue

@@ -1,4 +1,4 @@
-<script setup></script>
+<script setup lang="ts"></script>
 
 <template>
   <div class="layout-footer">

+ 1 - 1
src/layouts/BlankLayout.vue

@@ -1,4 +1,4 @@
-<script setup></script>
+<script setup lang="ts"></script>
 
 <template>
   <router-view />

+ 2 - 3
src/types/form.ts

@@ -1,9 +1,8 @@
 import type { FormProps, FormItemRule } from 'element-plus'
-import type { RouteLocationNormalized } from 'vue-router'
 
 export type BasicFormItem = {
   label: string
-  value: string | number | boolean
+  value: any
   name: string
   type: string
   placeholder?: string
@@ -24,7 +23,7 @@ export type AdvancedFormItem = {
 
 type Form = {
   props?: FormProps
-  route?: RouteLocationNormalized
+  route?: any
   span?: number
   advanced?: boolean
 }