From 98e3e03fd18829cd34646d2ce2b7a15de8ee2d50 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 4 Feb 2020 15:59:26 -0500 Subject: [PATCH] wip(ssr): fix index --- packages/compiler-ssr/src/transforms/ssrTransformElement.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/compiler-ssr/src/transforms/ssrTransformElement.ts b/packages/compiler-ssr/src/transforms/ssrTransformElement.ts index d80860ca..6d89ed62 100644 --- a/packages/compiler-ssr/src/transforms/ssrTransformElement.ts +++ b/packages/compiler-ssr/src/transforms/ssrTransformElement.ts @@ -35,6 +35,7 @@ export const ssrTransformElement: NodeTransform = (node, context) => { ) if (hasDynamicVBind) { + // TODO } for (let i = 0; i < node.props.length; i++) { @@ -64,7 +65,7 @@ export const ssrTransformElement: NodeTransform = (node, context) => { if (directiveTransform) { const { props } = directiveTransform(prop, node, context) for (let j = 0; j < props.length; j++) { - const { key, value } = props[i] + const { key, value } = props[j] openTag.push( createCallExpression(context.helper(SSR_RENDER_ATTR), [ key,