UNPKG

element3

Version:

A Component Library for Vue3

16 lines (13 loc) 324 B
import { getCurrentInstance } from 'vue' export function usePropUtils() { return { isAfferentProp: isAfferentProp() } } function isAfferentProp() { // Used only for setuping or mounting const { vnode } = getCurrentInstance() return (propKey) => { return typeof vnode.props[propKey] !== 'undefined' } }