1 |
- import{aq as i,d as M,r as u,l as C,o as y,v as x,w as n,g as L,f as r,n as c,a as _,x as D,P as j,j as H,C as T,I as W,_ as z,__tla as B}from"./index-e3afde76.js";import{_ as I,__tla as P}from"./ContentWrap-5f2f4872.js";import{_ as R,__tla as U}from"./IFrame-171ad149.js";import{d as m}from"./download-20922b56.js";import{__tla as g}from"./el-card-6198c22a.js";let k,q=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return g}catch{}})()]).then(async()=>{let o,p;o=()=>i.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},k=z(M({name:"InfraDBDoc",__name:"index",setup(O){const l=u(!0),w=u(""),e=async t=>{if(t==="HTML"){const a=await o();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 o(),a=new Blob([t],{type:"text/html"});w.value=window.URL.createObjectURL(a)}finally{l.value=!1}})()}),(t,a)=>{const d=H,s=T,b=R,h=I,v=W;return y(),x(h,{title:"\u6570\u636E\u5E93\u6587\u6863"},{default:n(()=>[L("div",p,[r(s,{type:"primary",plain:"",onClick:a[0]||(a[0]=f=>e("HTML"))},{default:n(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA HTML ")]),_:1}),r(s,{type:"primary",plain:"",onClick:a[1]||(a[1]=f=>e("Word"))},{default:n(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA Word ")]),_:1}),r(s,{type:"primary",plain:"",onClick:a[2]||(a[2]=f=>e("Markdown"))},{default:n(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA Markdown ")]),_:1})]),_(l)?j("",!0):D((y(),x(b,{key:0,src:_(w)},null,8,["src"])),[[v,_(l)]])]),_:1})}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/dbDoc/index.vue"]])});export{q as __tla,k as default};
|