vuetify
Version:
Vue.js 2 Semantic Component Framework
18 lines (15 loc) • 319 B
JavaScript
/**
*
* @param {object} slots
* @param {function} h
* @returns {array}
*/
export default function rebuildFunctionalSlots (slots, h) {
const children = []
for (const slot in slots) {
if (slots.hasOwnProperty(slot)) {
children.push(h('template', { slot }, slots[slot]))
}
}
return children
}