|
1 |
- var d=(a,l,t)=>new Promise((n,s)=>{var i=e=>{try{o(t.next(e))}catch(c){s(c)}},r=e=>{try{o(t.throw(e))}catch(c){s(c)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,r);o((t=t.apply(a,l)).next())});import{r as u}from"./index.a7edfbd5.js";function m(){const a=u(!1);return{exportLoading:a,exportData:(s,...i)=>d(this,[s,...i],function*(t,n=a){n.value=!0;try{const r=yield t(),o=URL.createObjectURL(r),e=document.createElement("a");e.download=r.filename,e.style.display="none",e.href=o,document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(o)}finally{n.value=!1}})}}export{m as u};
|