import{ap as i,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 D,a2 as H,v as j,J as B,N as R,_ as T,__tla as U}from"./index-8c6726e5.js";import{_ as W,__tla as g}from"./ContentWrap-1defc267.js";import{_ as z,__tla as I}from"./IFrame-6e52f213.js";import{d as m}from"./download-20922b56.js";import{__tla as J}from"./el-card-17d153e8.js";let x,N=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return g}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{let n,p;n=()=>i.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},x=T(M({name:"InfraDBDoc",__name:"index",setup(O){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 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 s=j,d=B,b=z,h=W,v=R;return y(),k(h,{title:"\u6570\u636E\u5E93\u6587\u6863"},{default:o(()=>[L("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)?H("",!0):D((y(),k(b,{key:0,src:_(w)},null,8,["src"])),[[v,_(l)]])]),_:1})}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/infra/dbDoc/index.vue"]])});export{N as __tla,x as default};
