UNPKG

vuetify

Version:

Vue Material Component Framework

14 lines (10 loc) 348 B
import { CreateElement, VNode } from 'vue' export default function rebuildFunctionalSlots (slots: { [key: string]: VNode[] | undefined }, h: CreateElement) { const children: VNode[] = [] for (const slot in slots) { if (slots.hasOwnProperty(slot)) { children.push(h('template', { slot }, slots[slot])) } } return children }