import{l as p,a as u,ah as m,ap as _,m as l,p as f,P as h,M as w,O as v,S as x,u as b}from"./vendor-98154105-1779868775780v=1.0.0.js";const C={class:"pl12 pr12"},B=p({__name:"index",props:{name:{},params:{},exportFunction:{}},setup(r){const a=r,c=u(!1),d=async()=>{c.value=!0;let t=a.exportFunction;if(!t)return;let n=await t(a.params);const o=a.name+".xlsx";i(o,n),setTimeout(()=>{c.value=!1},2e3)};function i(t,n){const o=new Blob([n],{type:"'application/vnd.ms-excel';charset=utf-8"}),e=document.createElement("a"),s=window.URL.createObjectURL(o);e.href=s,e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(s)}return(t,n)=>{const o=m("el-button"),e=_("throttle");return l(),f("div",C,[h((l(),w(o,{loading:b(c)},{default:v(()=>[x("\u5BFC\u51FA")]),_:1},8,["loading"])),[[e,d]])])}}});export{B as _};
