提交 22088e82 编写于 作者: V vben

fix(type): fix .vue file type error

上级 aaae6683
...@@ -105,7 +105,6 @@ export type ComponentType = ...@@ -105,7 +105,6 @@ export type ComponentType =
| 'RangePicker' | 'RangePicker'
| 'WeekPicker' | 'WeekPicker'
| 'TimePicker' | 'TimePicker'
| 'ImageUpload'
| 'Switch' | 'Switch'
| 'StrengthMeter' | 'StrengthMeter'
| 'Upload' | 'Upload'
......
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;
}
}
}
...@@ -3,23 +3,3 @@ declare module '*.vue' { ...@@ -3,23 +3,3 @@ declare module '*.vue' {
const Component: ReturnType<typeof defineComponent>; const Component: ReturnType<typeof defineComponent>;
export default Component; 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;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册