mirror of https://github.com/ElemeFE/element
7 lines
198 B
JavaScript
7 lines
198 B
JavaScript
![]() |
import Vue from 'vue';
|
||
|
|
||
|
export function isVNode(node) {
|
||
|
if (!node || typeof node !== 'object') return false;
|
||
|
return Vue.util.hasOwn(node, 'tag') && Vue.util.hasOwn(node, 'componentOptions');
|
||
|
};
|