feat(compiler-core): hoist element with static ref (#344)

This commit is contained in:
HcySunYang
2019-10-21 22:29:17 +08:00
committed by Evan You
parent 27f3c2d751
commit 920773fc6b
4 changed files with 62 additions and 6 deletions

View File

@@ -249,9 +249,6 @@ export function buildProps(
const prop = props[i]
if (prop.type === NodeTypes.ATTRIBUTE) {
const { loc, name, value } = prop
if (name === 'ref') {
hasRef = true
}
properties.push(
createObjectProperty(
createSimpleExpression(