fix(compiler-core): fix missing createVNode import on nested v-for
fix #2718
This commit is contained in:
parent
3f8f9b67b3
commit
ad4d3915d3
@ -37,7 +37,8 @@ import {
|
|||||||
RENDER_LIST,
|
RENDER_LIST,
|
||||||
OPEN_BLOCK,
|
OPEN_BLOCK,
|
||||||
CREATE_BLOCK,
|
CREATE_BLOCK,
|
||||||
FRAGMENT
|
FRAGMENT,
|
||||||
|
CREATE_VNODE
|
||||||
} from '../runtimeHelpers'
|
} from '../runtimeHelpers'
|
||||||
import { processExpression } from './transformExpression'
|
import { processExpression } from './transformExpression'
|
||||||
import { validateBrowserExpression } from '../validateExpression'
|
import { validateBrowserExpression } from '../validateExpression'
|
||||||
@ -168,6 +169,8 @@ export const transformFor = createStructuralDirectiveTransform(
|
|||||||
if (childBlock.isBlock) {
|
if (childBlock.isBlock) {
|
||||||
helper(OPEN_BLOCK)
|
helper(OPEN_BLOCK)
|
||||||
helper(CREATE_BLOCK)
|
helper(CREATE_BLOCK)
|
||||||
|
} else {
|
||||||
|
helper(CREATE_VNODE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user