]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-core): fix missing createVNode import on nested v-for
authorEvan You <yyx990803@gmail.com>
Thu, 3 Dec 2020 16:02:53 +0000 (11:02 -0500)
committerEvan You <yyx990803@gmail.com>
Thu, 3 Dec 2020 16:03:06 +0000 (11:03 -0500)
fix #2718

packages/compiler-core/src/transforms/vFor.ts

index aadb07edac7925bc5b1e05c1886bb9072f005755..2d193e6012517d93127fcee240ad09dd2ea938ad 100644 (file)
@@ -37,7 +37,8 @@ import {
   RENDER_LIST,
   OPEN_BLOCK,
   CREATE_BLOCK,
-  FRAGMENT
+  FRAGMENT,
+  CREATE_VNODE
 } from '../runtimeHelpers'
 import { processExpression } from './transformExpression'
 import { validateBrowserExpression } from '../validateExpression'
@@ -168,6 +169,8 @@ export const transformFor = createStructuralDirectiveTransform(
           if (childBlock.isBlock) {
             helper(OPEN_BLOCK)
             helper(CREATE_BLOCK)
+          } else {
+            helper(CREATE_VNODE)
           }
         }