فهرست منبع

fix(type): fix .vue file type error

vben 4 سال پیش
والد
کامیت
22088e820c
3فایلهای تغییر یافته به همراه19 افزوده شده و 21 حذف شده
  1. 0 1
      src/components/Form/src/types/index.ts
  2. 19 0
      src/types/tsx.d.ts
  3. 0 20
      src/types/vue-app-env.d.ts

+ 0 - 1
src/components/Form/src/types/index.ts

@@ -105,7 +105,6 @@ export type ComponentType =
   | 'RangePicker'
   | 'WeekPicker'
   | 'TimePicker'
-  | 'ImageUpload'
   | 'Switch'
   | 'StrengthMeter'
   | 'Upload'

+ 19 - 0
src/types/tsx.d.ts

@@ -0,0 +1,19 @@
+import type { ComponentRenderProxy, VNode } from 'vue';
+
+declare global {
+  namespace JSX {
+    // tslint:disable no-empty-interface
+    type Element = VNode;
+    // tslint:disable no-empty-interface
+    type ElementClass = ComponentRenderProxy;
+    interface ElementAttributesProperty {
+      $props: any;
+    }
+    interface IntrinsicElements {
+      [elem: string]: any;
+    }
+    interface IntrinsicAttributes {
+      [elem: string]: any;
+    }
+  }
+}

+ 0 - 20
src/types/vue-app-env.d.ts

@@ -3,23 +3,3 @@ declare module '*.vue' {
   const Component: ReturnType<typeof defineComponent>;
   export default Component;
 }
-
-import type { ComponentRenderProxy, VNode } from 'vue';
-
-declare global {
-  namespace JSX {
-    // tslint:disable no-empty-interface
-    type Element = VNode;
-    // tslint:disable no-empty-interface
-    type ElementClass = ComponentRenderProxy;
-    interface ElementAttributesProperty {
-      $props: any;
-    }
-    interface IntrinsicElements {
-      [elem: string]: any;
-    }
-    interface IntrinsicAttributes {
-      [elem: string]: any;
-    }
-  }
-}