feat: mixins/extends/assets options

This commit is contained in:
Evan You
2019-09-04 11:36:27 -04:00
parent 0bdf205a73
commit 02de984f1f
8 changed files with 124 additions and 76 deletions

View File

@@ -1,6 +1,6 @@
import { ComponentInstance } from './component'
import { nextTick } from './scheduler'
import { legacyWatch } from './apiOptions'
import { instanceWatch } from './apiWatch'
export const RenderProxyHandlers = {
get(target: ComponentInstance, key: string) {
@@ -42,7 +42,7 @@ export const RenderProxyHandlers = {
case '$nextTick':
return nextTick
case '$watch':
return legacyWatch.bind(target)
return instanceWatch.bind(target)
}
}
return target.user[key]