wip: refs

This commit is contained in:
Evan You
2019-06-03 13:44:45 +08:00
parent 0ad31f29c4
commit 2848f65a7f
6 changed files with 69 additions and 14 deletions

View File

@@ -19,6 +19,12 @@ export const RenderProxyHandlers = {
return target.slots
case '$refs':
return target.refs
case '$parent':
return target.parent
case '$root':
return target.root
case '$el':
return target.vnode && target.vnode.el
default:
break
}