import{h as e}from"./vendor-html2canvas-6F43d9AR.js";import{s as a}from"./vendor-jA_NIjzi.js";function o(o,{showMeaage:n=!0,message:s="已截图"}){e(document.querySelector(o),{useCORS:!0,scrollX:0,scrollY:-window.scrollY,scale:window.devicePixelRatio||1}).then((e=>{document.body.appendChild(e).id="canvasE";var o=document.createElement("a");o.href=e.toDataURL("image/png").replace("image/png","image/octet-stream"),o.download="case.png",o.click(),n&&a({message:s});document.getElementById("canvasE").remove()}))}export{o as u};
