wip(compiler): adjust statement positions

This commit is contained in:
Evan You
2019-09-25 15:09:58 -04:00
parent b43f3b61b7
commit ff2313e43a
5 changed files with 43 additions and 20 deletions

View File

@@ -82,9 +82,10 @@ export const PublicInstanceProxyHandlers = {
const { renderContext, data, props } = target
// TODO handle $xxx properties
return (
(data !== EMPTY_OBJ && hasOwn(data, key)) ||
hasOwn(renderContext, key) ||
hasOwn(props, key)
key[0] !== '_' &&
((data !== EMPTY_OBJ && hasOwn(data, key)) ||
hasOwn(renderContext, key) ||
hasOwn(props, key))
)
},
set(target: ComponentInternalInstance, key: string, value: any): boolean {