Blame view

node_modules/element-ui/src/utils/vdom.js 289 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
1
2
3
4
5
6
7
8
9
  import { hasOwn } from 'element-ui/src/utils/util';
  
  export function isVNode(node) {
    return node !== null && typeof node === 'object' && hasOwn(node, 'componentOptions');
  };
  
  export function getFirstComponentChild(children) {
    return children && children.filter(c => c && c.tag)[0];
  };