vSlot.d.ts 1.0 KB

12345678910111213141516
  1. import { BinaryExpression } from '@babel/types';
  2. import { ComponentNode, CompoundExpressionNode, DirectiveNode } from '@vue/compiler-core';
  3. import { CodegenScope, CodegenVForScope } from '../options';
  4. import { NodeTransform, TransformContext } from '../transform';
  5. export declare const transformSlot: NodeTransform;
  6. export declare function rewriteVSlot(dir: DirectiveNode, context: TransformContext): void;
  7. export declare function findSlotName(slotDir: DirectiveNode): string | CompoundExpressionNode;
  8. export declare function findCurrentPath(id: string, scope: CodegenScope): BinaryExpression | import("@babel/types").StringLiteral;
  9. /**
  10. * 目前无用
  11. * @param vForScope
  12. * @param parentScope
  13. * @param context
  14. */
  15. export declare function rewriteScopedSlotVForScope(vForScope: CodegenVForScope, parentScope: CodegenScope, context: TransformContext): void;
  16. export declare function createVSlotCallExpression(slotComponent: ComponentNode, vForScope: CodegenVForScope, context: TransformContext): import("@babel/types").CallExpression;