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.
 
 
 
 
 

19 lines
1.2 KiB

import { MiniProgramCompilerOptions } from '@dcloudio/uni-cli-shared';
import { ElementNode, RootNode, TemplateChildNode } from '@vue/compiler-core';
import type { TemplateCodegenOptions } from '../options';
import { TransformContext } from '../transform';
export interface TemplateCodegenContext {
code: string;
directive: string;
scopeId?: string | null;
event: MiniProgramCompilerOptions['event'];
slot: MiniProgramCompilerOptions['slot'];
lazyElement: MiniProgramCompilerOptions['lazyElement'];
component: MiniProgramCompilerOptions['component'];
isBuiltInComponent: TransformContext['isBuiltInComponent'];
isMiniProgramComponent: TransformContext['isMiniProgramComponent'];
push(code: string): void;
}
export declare function generate({ children }: RootNode, { slot, event, scopeId, emitFile, filename, directive, lazyElement, isBuiltInComponent, isMiniProgramComponent, component, }: TemplateCodegenOptions): void;
export declare function genNode(node: TemplateChildNode, context: TemplateCodegenContext): void;
export declare function genElementProps(node: ElementNode, virtualHost: boolean, context: TemplateCodegenContext): void;