Ver Fonte

chore(compiler-vapor): fix type error

三咲智子 Kevin Deng há 1 ano atrás
pai
commit
f85ac40f6c

+ 1 - 1
packages/compiler-vapor/src/transforms/transformElement.ts

@@ -222,7 +222,7 @@ export function buildProps(
   node: ElementNode,
   context: TransformContext<ElementNode>,
   isComponent: boolean,
-  isDynamicComponent: boolean,
+  isDynamicComponent?: boolean,
 ): PropsResult {
   const props = node.props as (VaporDirectiveNode | AttributeNode)[]
   if (props.length === 0) return [false, []]