@oruga-ui/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
23 lines (22 loc) • 797 B
JavaScript
;
/*! Oruga v0.11.0 | MIT License | github.com/oruga-ui/oruga */
const vue = require("vue");
const OSlotComponent = vue.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 vue.createVNode(_props.tag, {}, slot);
};
},
{
name: "OSlotComponent",
// manual runtime props declaration is currently still needed.
props: ["component", "props", "name", "tag"]
}
);
exports.OSlotComponent = OSlotComponent;
//# sourceMappingURL=SlotComponent-BMmH3QFp.cjs.map