wip: setup context + emit

This commit is contained in:
Evan You
2019-06-19 16:43:34 +08:00
parent 08806073a1
commit 5228f0343b
5 changed files with 121 additions and 78 deletions

View File

@@ -25,6 +25,8 @@ export const RenderProxyHandlers = {
return target.root
case '$el':
return target.vnode && target.vnode.el
case '$emit':
return target.emit
default:
break
}