UNPKG

winbox-ui-next

Version:

We Design Vue 2.0: A Vue.js 3 UI Library

6 lines (5 loc) 179 B
import { computed } from "vue"; function hasPropOrSlot(props, slots, propName) { return computed(() => Boolean(props[propName] || slots[propName])); } export { hasPropOrSlot };