You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/_util/createRefHooks.js

15 lines
318 B

const createRef = fn => {
return {
onVnodeBeforeMount: vnode => {
fn(vnode.component || vnode.el, vnode.key);
},
onVnodeUpdated: vnode => {
fn(vnode.component || vnode.el, vnode.key);
},
onVnodeUnmounted: vnode => {
fn(null, vnode.key);
},
};
};
export default createRef;