UNPKG

evil-vue

Version:

Evil vue3 writing, similar to angular writing Dependency injection

22 lines (21 loc) 852 B
import { VNodeProps } from 'vue'; import { WithVModel, WithVSlots, DecoratorHanlder, WithSlotTypes } from '../types'; declare type VueComponentProps<T extends {}> = Omit<T, 'slots'> & WithVModel<T> & WithVSlots<T> & VNodeProps & Record<string, unknown>; export declare abstract class VueComponent<T extends {} = {}> { static __hmrId?: string; /** Decorator hander */ static handler: DecoratorHanlder[]; /** 是否自定义解析组件 */ static resolveComponent?: any; static __vccOpts__value?: any; /** 组件option定义,vue3遇到类组件会从此属性获取组件的option */ static get __vccOpts(): any; get $props(): VueComponentProps<T>; /** 组件属性 */ props: VueComponentProps<T>; /** 组件上下文 */ context: WithSlotTypes<T>; setupReturn: any; constructor(); } export {};