import{am as i,d as v,r as u,q as L,o as y,x as k,w as o,g as D,f as r,y as c,a as _,z as H,a0 as j,j as C,G as R,K as T,_ as U,__tla as W}from"./index-8dc1e40a.js";import{_ as z,__tla as B}from"./ContentWrap-0aca5216.js";import{_ as g,__tla as q}from"./IFrame-e28a12d4.js";import{d as m}from"./download-20922b56.js";import{__tla as G}from"./el-card-18df90f0.js";let x,I=Promise.all([(()=>{try{return W}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return G}catch{}})()]).then(async()=>{let n,p;n=()=>i.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},x=U(v({name:"InfraDBDoc",__name:"index",setup(K){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 i.download({url:"/infra/db-doc/export-word"});m.word(a,"\u6570\u636E\u5E93\u6587\u6863.doc")}if(t==="Markdown"){const a=await i.download({url:"/infra/db-doc/export-markdown"});m.markdown(a,"\u6570\u636E\u5E93\u6587\u6863.md")}};return L(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 s=C,d=R,b=g,h=z,M=T;return y(),k(h,{title:"\u6570\u636E\u5E93\u6587\u6863"},{default:o(()=>[D("div",p,[r(d,{type:"primary",plain:"",onClick:a[0]||(a[0]=f=>e("HTML"))},{default:o(()=>[r(s,{icon:"ep:download"}),c(" \u5BFC\u51FA HTML ")]),_:1}),r(d,{type:"primary",plain:"",onClick:a[1]||(a[1]=f=>e("Word"))},{default:o(()=>[r(s,{icon:"ep:download"}),c(" \u5BFC\u51FA Word ")]),_:1}),r(d,{type:"primary",plain:"",onClick:a[2]||(a[2]=f=>e("Markdown"))},{default:o(()=>[r(s,{icon:"ep:download"}),c(" \u5BFC\u51FA Markdown ")]),_:1})]),_(l)?j("",!0):H((y(),k(b,{key:0,src:_(w)},null,8,["src"])),[[M,_(l)]])]),_:1})}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/infra/dbDoc/index.vue"]])});export{I as __tla,x as default};
