UNPKG

zcloud-ui

Version:

A Component Library for Vue.js.

10 lines (7 loc) 288 B
import { hasOwn } from 'zcloud-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]; }