import{x as U,c as d,al as i,y as p,z as m,A as s,Q as r,u as o,l as c,H as b,I as _,M as V,O as h,L as w}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{D as C}from"./DocumentOne-3125b02c-1783405707921v=1.0.0.js";import{_ as E}from"./index-71d7b18c-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";const N={class:"plan-container"},A={class:"else-plan mb20"},S={class:"flex mr10"},z={class:"flex flex-s ml20"},I={key:1,class:"flex"},L={class:"url"},O={key:2,class:"flex flex-s ml10"},H=U({__name:"UploadFile",props:{name:String,url:String},emits:["update:name","update:url"],setup(v,{emit:F}){const a=v,f=F,x=d(()=>a.url||a.name),t=d({get(){return a.name},set(u){f("update:name",u)}}),l=d({get(){return a.url},set(u){f("update:url",u)}}),y=()=>{t.value="",l.value=""};return(u,e)=>{const D=i("el-input"),k=i("el-button"),B=i("Delete"),g=i("el-icon");return p(),m("div",N,[s("div",A,[s("div",S,[e[3]||(e[3]=s("span",{class:"title"},"\u6587\u4EF6\u540D\u79F0\uFF1A",-1)),r(D,{modelValue:o(t),"onUpdate:modelValue":e[0]||(e[0]=n=>c(t)?t.value=n:null),rows:1,class:"flex1",type:"input",placeholder:"\u8BF7\u8F93\u5165\u65B9\u6848\u540D\u79F0"},null,8,["modelValue"])]),s("div",z,[e[5]||(e[5]=s("span",{calss:"title",style:{"flex-shrink":"0"}},"\u6587\u4EF6\u9644\u4EF6\uFF1A",-1)),o(l)?(p(),m("div",I,[s("span",L,h(o(l)),1)])):(p(),b(C,{key:0,url:o(l),"onUpdate:url":e[1]||(e[1]=n=>c(l)?l.value=n:null),name:o(t),"onUpdate:name":e[2]||(e[2]=n=>c(t)?t.value=n:null),limit:1,showFileList:!1,"upload-type":"file",process:!1},{default:_(()=>[r(k,null,{default:_(()=>e[4]||(e[4]=[V("\u70B9\u51FB\u4E0A\u4F20",-1)])),_:1,__:[4]})]),_:1},8,["url","name"])),o(x)?(p(),m("div",O,[r(g,{onClick:y,class:"icon"},{default:_(()=>[r(B)]),_:1})])):w("v-if",!0)])])])}}});const Z=E(H,[["__scopeId","data-v-15bbe706"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/components/UploadFile.vue"]]);export{Z as default};
