fix(compiler-core): v-if key error should only be checking same key on different branches

This commit is contained in:
Evan You
2020-08-04 12:01:07 -04:00
parent c3f8c780e7
commit de0c8a7e3e
5 changed files with 74 additions and 15 deletions

View File

@@ -243,6 +243,7 @@ export interface IfBranchNode extends Node {
type: NodeTypes.IF_BRANCH
condition: ExpressionNode | undefined // else
children: TemplateChildNode[]
userKey?: AttributeNode | DirectiveNode
}
export interface ForNode extends Node {