@oruga-ui/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
24 lines (23 loc) • 792 B
JavaScript
/*! Oruga v0.11.0 | 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, {}, slot);
};
},
{
name: "OSlotComponent",
// manual runtime props declaration is currently still needed.
props: ["component", "props", "name", "tag"]
}
);
export {
OSlotComponent as O
};
//# sourceMappingURL=SlotComponent-CxyqJoRq.mjs.map