fix(compiler-dom): style transform of static styles should not add STYLE patchFlag
This commit is contained in:
parent
7cd1b7fcaf
commit
113339c7b6
@ -215,7 +215,8 @@ function createTransformContext(
|
|||||||
return createSimpleExpression(
|
return createSimpleExpression(
|
||||||
`_hoisted_${context.hoists.length}`,
|
`_hoisted_${context.hoists.length}`,
|
||||||
false,
|
false,
|
||||||
exp.loc
|
exp.loc,
|
||||||
|
true
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
cache(exp) {
|
cache(exp) {
|
||||||
|
@ -77,5 +77,7 @@ describe('compiler: style transform', () => {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
// should not cause the STYLE patchFlag to be attached
|
||||||
|
expect((node.codegenNode as CallExpression).arguments.length).toBe(2)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user