UNPKG

@scalar/api-reference

Version:

Generate beautiful API references from OpenAPI documents

18 lines (17 loc) 488 B
import { defineComponent, renderSlot, createCommentVNode, unref } from "vue"; import { useLazyBus } from "../../helpers/lazy-bus.js"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "Lazy", props: { id: {} }, setup(__props) { const { isReady } = useLazyBus(__props.id); return (_ctx, _cache) => { return unref(isReady) ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true); }; } }); export { _sfc_main as default };