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.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							957 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							957 B
						
					
					
				
								/// <reference types="miniprogram-api-typings" />
							 | 
						|
								import { Weapp } from './weapp';
							 | 
						|
								declare type RecordToAny<T> = {
							 | 
						|
								  [K in keyof T]: any;
							 | 
						|
								};
							 | 
						|
								export declare type CombinedComponentInstance<Data, Props, Methods> = Methods &
							 | 
						|
								  WechatMiniprogram.Component.TrivialInstance &
							 | 
						|
								  Weapp.FormField & {
							 | 
						|
								    data: Data & RecordToAny<Props>;
							 | 
						|
								  };
							 | 
						|
								export interface VantComponentOptions<Data, Props, Methods, Instance> {
							 | 
						|
								  data?: Data;
							 | 
						|
								  field?: boolean;
							 | 
						|
								  classes?: string[];
							 | 
						|
								  mixins?: string[];
							 | 
						|
								  props?: Props & Weapp.PropertyOption;
							 | 
						|
								  relation?: Weapp.RelationOption<Instance> & {
							 | 
						|
								    type: 'ancestor' | 'descendant';
							 | 
						|
								    name: string;
							 | 
						|
								    current: string;
							 | 
						|
								  };
							 | 
						|
								  relations?: {
							 | 
						|
								    [componentName: string]: Weapp.RelationOption<Instance>;
							 | 
						|
								  };
							 | 
						|
								  methods?: Methods & Weapp.MethodOption<Instance>;
							 | 
						|
								  beforeCreate?: (this: Instance) => void;
							 | 
						|
								  created?: (this: Instance) => void;
							 | 
						|
								  mounted?: (this: Instance) => void;
							 | 
						|
								  destroyed?: (this: Instance) => void;
							 | 
						|
								}
							 | 
						|
								export {};
							 |