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.
14 lines
637 B
14 lines
637 B
6 months ago
|
import { DirectiveNode, ElementNode, IfNode } from '@vue/compiler-core';
|
||
|
import { NodeTransform, TransformContext } from '../transform';
|
||
|
interface IfOptions {
|
||
|
name: string;
|
||
|
condition?: string;
|
||
|
}
|
||
|
export type IfElementNode = ElementNode & {
|
||
|
vIf: IfOptions;
|
||
|
};
|
||
|
export declare function isIfElementNode(node: unknown): node is IfElementNode;
|
||
|
export declare const transformIf: NodeTransform;
|
||
|
export declare function processIf(node: ElementNode, dir: DirectiveNode, context: TransformContext, processCodegen?: (node: IfNode, branch: IfElementNode, isRoot: boolean) => (() => void) | undefined): (() => void) | undefined;
|
||
|
export {};
|