feat: custom formatters

This commit is contained in:
Evan You
2020-10-13 11:50:09 -04:00
parent ffdb05e1f1
commit 6ba7ba47d5
5 changed files with 208 additions and 1 deletions

View File

@@ -247,6 +247,11 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
return true
}
// for internal formatters to know that this is a Vue instance
if (__DEV__ && key === '__isVue') {
return true
}
// data / props / ctx
// This getter gets called for every property access on the render context
// during render and is a major hotspot. The most expensive part of this