import{a2 as a,e,T as s,ad as l,f as i,g as t,o as n,h as r,w as o,i as m,k as c,F as u,l as f,a as d,ae as p,j as _,t as k,N as g,a7 as y,af as h,O as x,z as C,y as z}from"./index-Cg3FU-dV.js";import{_ as j,a as v}from"./uni-row.DfI4R5V8.js";import{_ as F}from"./uni-icons.D_sy4NxH.js";import{f as w}from"./file.Hbk8zQoO.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const D=b({__name:"uploadFromList",props:{uploadFromData:{type:Array,default:()=>[]},isClear:{type:Boolean,default:!1}},emits:["handleClear"],setup(b,{emit:D}){const N=b,{uploadFromData:A,isClear:B}=a(N);let E=e([]);s((()=>A),((a,e)=>{a.value.length>0&&a.value.forEach((a=>{l(a.name)&&E.push(a.url)}))}),{immediate:!0,deep:!0});const I=a=>{h(a.url,a.name,E)};let J=D;return(a,e)=>{const s=x,h=i(t("uni-col"),j),b=C,D=z,N=i(t("uni-icons"),F),E=i(t("uni-row"),v);return n(),r(b,{class:"examine-from-con"},{default:o((()=>[m(b,{class:"examine-from-list"},{default:o((()=>[(n(!0),c(u,null,f(d(A),((a,e)=>(n(),c(u,{key:"formlist"+e},[d(B)?(n(),r(E,{key:0,class:"examine-from-list-item",onClick:e=>I(a)},{default:o((()=>[m(h,{span:6,class:"examine-from-left"},{default:o((()=>[d(l)(a.name)?(n(),r(s,{key:0,class:"image",src:a.url,mode:""},null,8,["src"])):(n(),r(s,{key:1,class:"image",src:"/static/image/cloudfile/"+d(p)(a.name),mode:""},null,8,["src"]))])),_:2},1024),m(h,{span:18,class:"examine-from-right"},{default:o((()=>[m(E,null,{default:o((()=>[m(h,{span:22,class:"line1"},{default:o((()=>[m(b,{class:"line1"},{default:o((()=>[_(k(a.name),1)])),_:2},1024),a.size?(n(),r(b,{key:0,class:"right-size"},{default:o((()=>[m(D,null,{default:o((()=>[_(k(d(w)(a.size,2)),1)])),_:2},1024)])),_:2},1024)):g("",!0)])),_:2},1024),m(h,{span:2,class:"text-right",onClick:y((a=>(a=>{J("handleClear",a)})(e)),["stop"])},{default:o((()=>[m(N,{class:"icon-clear",type:"clear"})])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])):(n(),r(E,{key:1,class:"examine-from-list-item",onClick:e=>I(a)},{default:o((()=>[m(h,{span:6,class:"examine-from-left"},{default:o((()=>[d(l)(a.name)?(n(),r(s,{key:0,src:a.url,mode:"",class:"image"},null,8,["src"])):(n(),r(s,{key:1,class:"image",src:"/static/image/cloudfile/"+d(p)(a.name),mode:""},null,8,["src"]))])),_:2},1024),m(h,{span:18,class:"examine-from-right line1"},{default:o((()=>[m(b,{class:""},{default:o((()=>[_(k(a.name),1)])),_:2},1024),a.size?(n(),r(b,{key:0,class:"right-size"},{default:o((()=>[m(D,null,{default:o((()=>[_(k(d(w)(a.size,2)),1)])),_:2},1024)])),_:2},1024)):g("",!0)])),_:2},1024)])),_:2},1032,["onClick"]))],64)))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-44cfabeb"]]);export{D as u};
