2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
import{w as v,K as k}from"./element-plus.b3353ca6.js";import{u as y,c as l}from"./index.892155dd.js";import{r as b,o as a,c as t,V as c,M as i,u as S,a as s,W as p,a8 as w,U as F,T as A}from"./@vue.ab566ce7.js";const B=A(" \u4E0A\u4F20 "),U={style:{"margin-left":"5px",display:"block"}},V=["href"],C=["onClick"],D={__name:"index",props:{annex:Array},emits:["handleAvatarSuccess","delFileFn"],setup(d,{emit:o}){const u=y(),f=b(l.baseUrl+l.urlPrefix),m=e=>{o("handleAvatarSuccess",e)},_=e=>{o("delFile",e)};return(e,E)=>{var r;const x=v,g=k;return a(),t(p,null,[c(g,{accept:"doc, docx, xls, xlsx, ppt, pptx, pdf, txt, zip, rar, tar, jpg, png, gif, jpeg, webp, wmv, avi, mpg, mpeg, 3gp, mov, mp4, flv, f4v, rmvb, mkv",class:"upload-demo","show-file-list":!1,"aria-hidden":"true",headers:{Token:(r=S(u))==null?void 0:r.token},action:f.value+"/upload/file","on-success":m,ref:"upload"},{default:i(()=>[c(x,{type:"primary"},{default:i(()=>[B]),_:1})]),_:1},8,["headers","action"]),s("div",null,[(a(!0),t(p,null,w(d.annex,(n,h)=>(a(),t("div",U,[s("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:n.uri,target:"_blank"},F(n.name),9,V),s("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:N=>_(h)},"x",8,C)]))),256))])],64)}}};export{D as _};
|