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'
|
||||
) {
|
||||
for (const key of getObjectExpressionKeys(bodyItem.argument)) {
|
||||
bindings[key] = !bindings[key]
|
||||
? property.key.name === 'setup'
|
||||
// use variables in setup first, consistent with runtime
|
||||
if (bindings[key] === BindingTypes.SETUP_MAYBE_REF) continue
|
||||
bindings[key] =
|
||||
property.key.name === 'setup'
|
||||
? BindingTypes.SETUP_MAYBE_REF
|
||||
: BindingTypes.DATA
|
||||
: BindingTypes.SETUP_MAYBE_REF
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue