import{_ as g}from"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import{_,c as s,e as v,f as w,h as o,i as t,g as l,H as d,w as C,v as z,G as b,n as S,C as $,R as k,S as y}from"./index.0308b213.js";const I=e=>(k("data-v-f00ed21d"),e=e(),y(),e),V={class:"material-select"},B=["onClick"],L=I(()=>l("span",null,"\u6DFB\u52A0",-1)),M={class:"material-wrap"};function R(e,i,D,E,N,P){const p=s("file-item"),r=s("draggable"),m=s("plus"),f=s("el-icon"),u=s("material"),c=s("popup");return v(),w("div",V,[o(c,{ref:"popupRef",width:"950px","custom-class":"body-padding",title:`\u9009\u62E9${e.tipsText}`,onConfirm:e.handleConfirm},{trigger:t(()=>[l("div",{class:"material-select__trigger clearfix",onClick:i[2]||(i[2]=$(()=>{},["stop"]))},[o(r,{modelValue:e.fileList,"onUpdate:modelValue":i[0]||(i[0]=a=>e.fileList=a),class:"draggable",animation:"300","item-key":"id"},{item:t(({element:a,index:n})=>[l("div",{class:d(["material-preview",{"is-disabled":e.disabled,"is-one":e.limit==1}]),onClick:h=>e.showPopup(n)},[o(p,{uri:a,"file-size":e.size,onClose:h=>e.deleteImg(n)},null,8,["uri","file-size","onClose"])],10,B)]),_:1},8,["modelValue"]),C(l("div",{class:d(["material-upload",{"is-disabled":e.disabled,"is-one":e.limit==1}]),onClick:i[1]||(i[1]=a=>e.showPopup(-1))},[b(e.$slots,"upload",{},()=>[l("div",{class:"upload-btn flex flex-col flex-center",style:S({width:e.size,height:e.size})},[o(f,{size:25},{default:t(()=>[o(m)]),_:1}),L],4)],!0)],2),[[z,e.showUpload]])])]),default:t(()=>[l("div",M,[o(u,{ref:"materialRefs","file-size":e.fileSize,limit:e.meterialLimit,onChange:e.selectChange,show_type:e.show_type},null,8,["file-size","limit","onChange","show_type"])])]),_:3},8,["title","onConfirm"])])}const F=_(g,[["render",R],["__scopeId","data-v-f00ed21d"]]);export{F as M};
