UNPKG

@oruga-ui/oruga-next

Version:

UI components for Vue.js and CSS framework agnostic

28 lines (27 loc) 845 B
/*! Oruga v0.11.4 | MIT License | github.com/oruga-ui/oruga */ import { defineComponent, createVNode } from "vue"; const OSlotComponent = defineComponent( (props, { slots }) => { const _props = { tag: "div", name: "default", ...props }; return () => { let slot = () => props.component.$slots[_props.name] ? props.component.$slots[_props.name](props.props) : slots.default ? slots.default() : void 0; if (typeof _props.tag === "string") { slot = slot(); } return createVNode( _props.tag, { class: _props.class }, slot ); }; }, { name: "OSlotComponent", // manual runtime props declaration is currently still needed. props: ["component", "props", "name", "tag"] } ); export { OSlotComponent as O }; //# sourceMappingURL=SlotComponent-DWxnwead.mjs.map