Commit 22088e820c79a9832179c8fb7c5cffe30b9b57e9

Authored by vben
1 parent aaae6683

fix(type): fix .vue file type error

src/components/Form/src/types/index.ts
@@ -105,7 +105,6 @@ export type ComponentType = @@ -105,7 +105,6 @@ export type ComponentType =
105 | 'RangePicker' 105 | 'RangePicker'
106 | 'WeekPicker' 106 | 'WeekPicker'
107 | 'TimePicker' 107 | 'TimePicker'
108 - | 'ImageUpload'  
109 | 'Switch' 108 | 'Switch'
110 | 'StrengthMeter' 109 | 'StrengthMeter'
111 | 'Upload' 110 | 'Upload'
src/types/tsx.d.ts 0 → 100644
  1 +import type { ComponentRenderProxy, VNode } from 'vue';
  2 +
  3 +declare global {
  4 + namespace JSX {
  5 + // tslint:disable no-empty-interface
  6 + type Element = VNode;
  7 + // tslint:disable no-empty-interface
  8 + type ElementClass = ComponentRenderProxy;
  9 + interface ElementAttributesProperty {
  10 + $props: any;
  11 + }
  12 + interface IntrinsicElements {
  13 + [elem: string]: any;
  14 + }
  15 + interface IntrinsicAttributes {
  16 + [elem: string]: any;
  17 + }
  18 + }
  19 +}
src/types/vue-app-env.d.ts
@@ -3,23 +3,3 @@ declare module '*.vue' { @@ -3,23 +3,3 @@ declare module '*.vue' {
3 const Component: ReturnType<typeof defineComponent>; 3 const Component: ReturnType<typeof defineComponent>;
4 export default Component; 4 export default Component;
5 } 5 }
6 -  
7 -import type { ComponentRenderProxy, VNode } from 'vue';  
8 -  
9 -declare global {  
10 - namespace JSX {  
11 - // tslint:disable no-empty-interface  
12 - type Element = VNode;  
13 - // tslint:disable no-empty-interface  
14 - type ElementClass = ComponentRenderProxy;  
15 - interface ElementAttributesProperty {  
16 - $props: any;  
17 - }  
18 - interface IntrinsicElements {  
19 - [elem: string]: any;  
20 - }  
21 - interface IntrinsicAttributes {  
22 - [elem: string]: any;  
23 - }  
24 - }  
25 -}