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