|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
const createRefHooks = fn => {
|
|
|
|
|
return {
|
|
|
|
|
onVnodeBeforeMount: vnode => {
|
|
|
|
|
fn(vnode.component || vnode.el, vnode.key);
|
|
|
|
|
fn((vnode.component && vnode.component.ctx) || vnode.el, vnode.key);
|
|
|
|
|
},
|
|
|
|
|
onVnodeUpdated: vnode => {
|
|
|
|
|
fn(vnode.component || vnode.el, vnode.key);
|
|
|
|
|
fn((vnode.component && vnode.component.ctx) || vnode.el, vnode.key);
|
|
|
|
|
},
|
|
|
|
|
onVnodeUnmounted: vnode => {
|
|
|
|
|
fn(null, vnode.key);
|
|
|
|
|