|
|
@ -5,17 +5,11 @@ |
|
|
|
* @create: 2022/4/10 |
|
|
|
* @create: 2022/4/10 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
import type { |
|
|
|
import type { ComponentRenderProxy, VNode, VNodeChild, ComponentPublicInstance, FunctionalComponent, PropType as VuePropType } from 'vue'; |
|
|
|
ComponentRenderProxy, |
|
|
|
|
|
|
|
VNode, |
|
|
|
|
|
|
|
VNodeChild, |
|
|
|
|
|
|
|
ComponentPublicInstance, |
|
|
|
|
|
|
|
FunctionalComponent, |
|
|
|
|
|
|
|
PropType as VuePropType, |
|
|
|
|
|
|
|
} from 'vue'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
declare global { |
|
|
|
declare global { |
|
|
|
// vue
|
|
|
|
|
|
|
|
|
|
|
|
/** vue-type相关 */ |
|
|
|
declare type PropType<T> = VuePropType<T>; |
|
|
|
declare type PropType<T> = VuePropType<T>; |
|
|
|
declare type VueNode = VNodeChild | JSX.Element; |
|
|
|
declare type VueNode = VNodeChild | JSX.Element; |
|
|
|
|
|
|
|
|
|
|
@ -58,9 +52,7 @@ declare global { |
|
|
|
declare function parseInt(s: string | number, radix?: number): number; |
|
|
|
declare function parseInt(s: string | number, radix?: number): number; |
|
|
|
|
|
|
|
|
|
|
|
namespace JSX { |
|
|
|
namespace JSX { |
|
|
|
// tslint:disable no-empty-interface
|
|
|
|
|
|
|
|
type Element = VNode; |
|
|
|
type Element = VNode; |
|
|
|
// tslint:disable no-empty-interface
|
|
|
|
|
|
|
|
type ElementClass = ComponentRenderProxy; |
|
|
|
type ElementClass = ComponentRenderProxy; |
|
|
|
interface ElementAttributesProperty { |
|
|
|
interface ElementAttributesProperty { |
|
|
|
$props: any; |
|
|
|
$props: any; |
|
|
|