mirror of https://github.com/vuejs/core.git
chore: update
This commit is contained in:
parent
70b5671fba
commit
7704d78a34
|
@ -87,11 +87,12 @@ function analyzeBindingsFromOptions(node: ObjectExpression): BindingMetadata {
|
||||||
bodyItem.argument.type === 'ObjectExpression'
|
bodyItem.argument.type === 'ObjectExpression'
|
||||||
) {
|
) {
|
||||||
for (const key of getObjectExpressionKeys(bodyItem.argument)) {
|
for (const key of getObjectExpressionKeys(bodyItem.argument)) {
|
||||||
bindings[key] = !bindings[key]
|
// use variables in setup first, consistent with runtime
|
||||||
? property.key.name === 'setup'
|
if (bindings[key] === BindingTypes.SETUP_MAYBE_REF) continue
|
||||||
|
bindings[key] =
|
||||||
|
property.key.name === 'setup'
|
||||||
? BindingTypes.SETUP_MAYBE_REF
|
? BindingTypes.SETUP_MAYBE_REF
|
||||||
: BindingTypes.DATA
|
: BindingTypes.DATA
|
||||||
: BindingTypes.SETUP_MAYBE_REF
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue