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