fix: resolveDynamicComponent should use context instance

This commit is contained in:
Evan You
2019-11-25 10:04:40 -05:00
parent 01eb3c12e9
commit 08a3d95e52
4 changed files with 35 additions and 9 deletions

View File

@@ -106,6 +106,9 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
}
// return the value from propsProxy for ref unwrapping and readonly
return propsProxy![key]
} else if (key === '$') {
// reserved backdoor to access the internal instance
return target
} else if (key === '$cache') {
return target.renderCache || (target.renderCache = [])
} else if (key === '$el') {