You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
577B

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