import{ap as s,d as M,r as u,B as C,o as y,l as k,w as o,g as L,i as r,j as c,a as _,C as H,a2 as j,v as B,J as D,N as T,_ as W,__tla as O}from"./index-2c56227b.js";import{_ as P,__tla as R}from"./ContentWrap-f1610353.js";import{_ as U,__tla as g}from"./IFrame-f2c2085a.js";import{d as m}from"./download-20922b56.js";import{__tla as A}from"./el-card-9c148b4f.js";let x,E=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return g}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{let n,p;n=()=>s.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},x=W(M({name:"InfraDBDoc",__name:"index",setup(G){const l=u(!0),w=u(""),e=async t=>{if(t==="HTML"){const a=await n();m.html(a,"\u6570\u636E\u5E93\u6587\u6863.html")}if(t==="Word"){const a=await s.download({url:"/infra/db-doc/export-word"});m.word(a,"\u6570\u636E\u5E93\u6587\u6863.doc")}if(t==="Markdown"){const a=await s.download({url:"/infra/db-doc/export-markdown"});m.markdown(a,"\u6570\u636E\u5E93\u6587\u6863.md")}};return C(async()=>{await(async()=>{try{const t=await n(),a=new Blob([t],{type:"text/html"});w.value=window.URL.createObjectURL(a)}finally{l.value=!1}})()}),(t,a)=>{const d=B,i=D,b=U,h=P,v=T;return y(),k(h,{title:"\u6570\u636E\u5E93\u6587\u6863"},{default:o(()=>[L("div",p,[r(i,{type:"primary",plain:"",onClick:a[0]||(a[0]=f=>e("HTML"))},{default:o(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA HTML ")]),_:1}),r(i,{type:"primary",plain:"",onClick:a[1]||(a[1]=f=>e("Word"))},{default:o(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA Word ")]),_:1}),r(i,{type:"primary",plain:"",onClick:a[2]||(a[2]=f=>e("Markdown"))},{default:o(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA Markdown ")]),_:1})]),_(l)?j("",!0):H((y(),k(b,{key:0,src:_(w)},null,8,["src"])),[[v,_(l)]])]),_:1})}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/infra/dbDoc/index.vue"]])});export{E as __tla,x as default};
