import{D as V}from"./DocumentOne-31ada404-1785478469326v=1.0.0.js";import{x as g,c as d,al as i,y as r,z as m,A as s,Q as p,u as o,l as _,H as C,I as c,M as E,O as N,L as w}from"./vendor-46662d77-1785478469326v=1.0.0.js";import{_ as A}from"./index-5a47c360-1785478469326v=1.0.0.js";import"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";const b={class:"plan-container"},S={class:"else-plan mb20"},h={class:"flex mr10"},I={class:"flex flex-s ml20"},L={key:1,class:"flex"},O={class:"url"},z={key:2,class:"flex flex-s ml10"},H=g({__name:"UploadFile",props:{name:String,url:String},emits:["update:name","update:url"],setup(F,{emit:v}){const a=F,f=v,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 B=i("el-input"),D=i("el-button"),k=i("Delete"),U=i("el-icon");return r(),m("div",b,[s("div",S,[s("div",h,[e[3]||(e[3]=s("span",{class:"title"},"\u6587\u4EF6\u540D\u79F0\uFF1A",-1)),p(B,{modelValue:o(t),"onUpdate:modelValue":e[0]||(e[0]=n=>_(t)?t.value=n:null),rows:1,class:"flex1",type:"input",placeholder:"\u8BF7\u8F93\u5165\u65B9\u6848\u540D\u79F0"},null,8,["modelValue"])]),s("div",I,[e[5]||(e[5]=s("span",{calss:"title",style:{"flex-shrink":"0"}},"\u6587\u4EF6\u9644\u4EF6\uFF1A",-1)),o(l)?(r(),m("div",L,[s("span",O,N(o(l)),1)])):(r(),C(V,{key:0,url:o(l),"onUpdate:url":e[1]||(e[1]=n=>_(l)?l.value=n:null),name:o(t),"onUpdate:name":e[2]||(e[2]=n=>_(t)?t.value=n:null),limit:1,showFileList:!1,"upload-type":"file",process:!1},{default:c(()=>[p(D,null,{default:c(()=>e[4]||(e[4]=[E("\u70B9\u51FB\u4E0A\u4F20",-1)])),_:1,__:[4]})]),_:1},8,["url","name"])),o(x)?(r(),m("div",z,[p(U,{onClick:y,class:"icon"},{default:c(()=>[p(k)]),_:1})])):w("v-if",!0)])])])}}});const j=A(H,[["__scopeId","data-v-771df256"]]);export{j as default};
