import{d,e as o,o as v,c as x,n as i,g as e,w as s,t as y,l as _,p as C,J as V,K as g,_ as k}from"./index-17740f03-1778929502341v=1.0.0.js";const D={key:0,class:"file_container"},B={class:"left flex"},E={class:"right"},I=d({name:"FileViewItem"}),h=d({...I,props:{name:String,url:String},setup(l){const t=l,u=async()=>{t.url?window.open("http://14.17.80.135:28012/onlinePreview?url="+encodeURIComponent(V.exports.Base64.encode(t.url))):g.warning("\u9884\u89C8\u5730\u5740\u65E0\u6548")},m=()=>{const a=document.createElement("a");a.href=t.url,a.download=t.name?t.name:"exportdata",a.click()};return(a,n)=>{const p=o("Document"),c=o("el-icon"),f=o("View"),r=o("el-link"),w=o("Download");return l.url?(v(),x("div",D,[i("div",B,[e(c,{class:"mr5"},{default:s(()=>[e(p)]),_:1}),i("span",null,y(l.name),1)]),i("div",E,[e(r,{type:"primary",class:"mr10",onClick:u},{default:s(()=>[e(c,{class:"mr5"},{default:s(()=>[e(f)]),_:1}),n[1]||(n[1]=_("\u9884\u89C8"))]),_:1}),e(r,{type:"primary",onClick:n[0]||(n[0]=F=>m())},{default:s(()=>[e(c,{class:"mr5"},{default:s(()=>[e(w)]),_:1}),n[2]||(n[2]=_("\u4E0B\u8F7D"))]),_:1})])])):C("v-if",!0)}}});const S=k(h,[["__scopeId","data-v-6af8e4a9"]]);export{S as default};
