index-107c96d9.js 1.9 KB

1
  1. import{ar as i,d as v,r as y,l as D,o as u,x,w as n,h as L,g as r,n as c,a as _,y as C,Q as H,q as T,D as W,J as j,_ as z,__tla as B}from"./index-b362e1d5.js";import{_ as R,__tla as U}from"./ContentWrap-a3bb871b.js";import{_ as g,__tla as q}from"./IFrame-fb37dc61.js";import{d as m}from"./download-20922b56.js";import{__tla as I}from"./el-card-732e29b8.js";let h,J=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{let o,p;o=()=>i.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},h=z(v({name:"InfraDBDoc",__name:"index",setup(O){const l=y(!0),w=y(""),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 d=T,s=W,k=g,b=R,M=j;return u(),x(b,{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)?H("",!0):C((u(),x(k,{key:0,src:_(w)},null,8,["src"])),[[M,_(l)]])]),_:1})}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/dbDoc/index.vue"]])});export{J as __tla,h as default};