index-c5d6f9ea.js 1.9 KB

1
  1. import{az as c,d as L,r as u,b as v,o as y,C as k,A as o,B as C,f as r,D as i,a as _,k as B,a2 as D,_ as H,J as T,Y as W,__tla as j}from"./index-f65577b8.js";import{_ as R,__tla as U}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{_ as z,__tla as A}from"./IFrame.vue_vue_type_script_setup_true_lang-644d1b1d.js";import{d as m}from"./download-20922b56.js";import{__tla as I}from"./el-card-ab53e6aa.js";let h,J=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{let n,p;n=()=>c.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},h=L({name:"InfraDBDoc",__name:"index",setup(O){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 v(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=H,s=T,x=z,b=R,M=W;return y(),k(b,{title:"\u6570\u636E\u5E93\u6587\u6863"},{default:o(()=>[C("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)?D("",!0):B((y(),k(x,{key:0,src:_(w)},null,8,["src"])),[[M,_(l)]])]),_:1})}}})});export{J as __tla,h as default};