sci-pro
Version:
2 lines (1 loc) • 617 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),u=require("./loading.js");let c;const s=function(e={}){const l=t(e);if(l.fullscreen&&c)return c;const r=u.createLoadingComponent({...l,closed:()=>{l.fullscreen&&(c=void 0)}});return n.nextTick(()=>r.visible.value=l.visible),document.body.appendChild(r.$el),c=r,r},t=e=>({visible:(e==null?void 0:e.visible)??!0,fullscreen:(e==null?void 0:e.fullscreen)??!0,text:e.text||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,background:e.background||"",customClass:e.customClass||""});exports.Loading=s;