You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							28 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							28 lines
						
					
					
						
							1.1 KiB
						
					
					
				| /// <reference types="miniprogram-api-typings" /> | |
| interface VantComponentInstance { | |
|     parent: WechatMiniprogram.Component.TrivialInstance; | |
|     children: WechatMiniprogram.Component.TrivialInstance[]; | |
|     index: number; | |
|     $emit: (name: string, detail?: unknown, options?: WechatMiniprogram.Component.TriggerEventOption) => void; | |
| } | |
| export type VantComponentOptions<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption> = { | |
|     data?: Data; | |
|     field?: boolean; | |
|     classes?: string[]; | |
|     mixins?: string[]; | |
|     props?: Props; | |
|     relation?: { | |
|         relations: Record<string, WechatMiniprogram.Component.RelationOption>; | |
|         mixin: string; | |
|     }; | |
|     watch?: Record<string, (...args: any[]) => any>; | |
|     methods?: Methods; | |
|     beforeCreate?: () => void; | |
|     created?: () => void; | |
|     mounted?: () => void; | |
|     destroyed?: () => void; | |
| } & ThisType<VantComponentInstance & WechatMiniprogram.Component.Instance<Data & { | |
|     name: string; | |
|     value: any; | |
| } & Record<string, any>, Props, Methods> & Record<string, any>>; | |
| export {};
 | |
| 
 |