import{d,U as r,a2 as p,ad as i,af as e,k as o,G as n}from"./vue-vendor-CxLCUzY4.js";import{downloadByOnlineUrl as I,downloadByBase64 as y,downloadByData as v,downloadByUrl as m}from"./download-Bn4f3tzD.js";import{P as l}from"./index-CRgSyMPH.js";import{A as K}from"./antd-vue-vendor-CahNzUUa.js";import{_ as U}from"./index-Cy4uayzW.js";import"./base64Conver-24EVOS6V.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useContentHeight-XU-h1taH.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./useContentViewHeight-Qm4QNm5l.js";import"./usePageContext-CXQdt-5h.js";import"./injectionKey-DPVn4AgL.js";const f="data:image/png;base64,[encoded data, 16276 characters]",c=d({components:{PageWrapper:l,[K.name]:K},setup(){function t(){v("text content","testName.txt")}function u(){m({url:"https://codeload.github.com/anncwb/vue-Jeecg-admin-doc/zip/master",target:"_self"}),m({url:"https://vebn.oss-cn-beijing.aliyuncs.com/Jeecg/logo.png",target:"_self"})}function j(){y(f,"logo.png")}function k(){I("https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5944817f47b8408e9f1442ece49d68ca~tplv-k3u1fbpfcp-watermark.image","logo.png")}return{handleDownloadByUrl:u,handleDownByData:t,handleDownloadByBase64:j,handleDownloadByOnlineUrl:k}}});function g(t,u,j,k,F,Z){const a=r("a-alert"),A=r("a-button"),s=r("PageWrapper");return p(),i(s,{title:"文件下载示例"},{default:e(()=>[o(a,{message:"根据后台接口文件流下载"}),o(A,{type:"primary",class:"my-4",onClick:t.handleDownByData},{default:e(()=>u[0]||(u[0]=[n(" 文件流下载 ")])),_:1},8,["onClick"]),o(a,{message:"根据文件地址下载文件"}),o(A,{type:"primary",class:"my-4",onClick:t.handleDownloadByUrl},{default:e(()=>u[1]||(u[1]=[n(" 文件地址下载 ")])),_:1},8,["onClick"]),o(a,{message:"base64流下载"}),o(A,{type:"primary",class:"my-4",onClick:t.handleDownloadByBase64},{default:e(()=>u[2]||(u[2]=[n(" base64流下载 ")])),_:1},8,["onClick"]),o(a,{message:"图片Url下载,如果有跨域问题，需要处理图片跨域"}),o(A,{type:"primary",class:"my-4",onClick:t.handleDownloadByOnlineUrl},{default:e(()=>u[3]||(u[3]=[n(" 图片Url下载 ")])),_:1},8,["onClick"])]),_:1})}const N=U(c,[["render",g]]);export{N as default};
