fix(compiler-core): make v-once work with v-if/else-if/else (#2182)

Partial fix for #2035
This commit is contained in:
HcySunYang
2020-10-05 23:58:37 +08:00
committed by GitHub
parent 752ecee407
commit 9499871582
3 changed files with 35 additions and 13 deletions

View File

@@ -236,7 +236,7 @@ export interface CompoundExpressionNode extends Node {
export interface IfNode extends Node {
type: NodeTypes.IF
branches: IfBranchNode[]
codegenNode?: IfConditionalExpression
codegenNode?: IfConditionalExpression | CacheExpression // <div v-if v-once>
}
export interface IfBranchNode extends Node {