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