wip: expression rewrite

This commit is contained in:
Evan You
2019-09-23 02:52:54 -04:00
parent 70656690e2
commit bb8524e199
10 changed files with 224 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ export const transformIf = createStructuralDirectiveTransform(
// locate the adjacent v-if
const siblings = context.parent.children
const comments = []
let i = siblings.indexOf(node)
let i = siblings.indexOf(node as any)
while (i-- >= -1) {
const sibling = siblings[i]
if (__DEV__ && sibling && sibling.type === NodeTypes.COMMENT) {