Skip to content

Commit

Permalink
fix(compiler-core): fix missing createVNode import on nested v-for
Browse files Browse the repository at this point in the history
fix #2718
  • Loading branch information
yyx990803 committed Dec 3, 2020
1 parent 3f8f9b6 commit ad4d391
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/compiler-core/src/transforms/vFor.ts
Expand Up @@ -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'
Expand Down Expand Up @@ -168,6 +169,8 @@ export const transformFor = createStructuralDirectiveTransform(
if (childBlock.isBlock) {
helper(OPEN_BLOCK)
helper(CREATE_BLOCK)
} else {
helper(CREATE_VNODE)
}
}

Expand Down

0 comments on commit ad4d391

Please sign in to comment.