import{d as w,c as t,e as o,f as a,g as d,t as L,h as f,i as s,F as c,j as _,k as n,A as u,m as C,R as S,S as E,_ as j}from"./index.0308b213.js";const I=r=>(S("data-v-b2e1f352"),r=r(),E(),r),N={style:{width:"100%","text-align":"center",padding:"10px 0px","font-size":"17px","font-weight":"bold"}},T=["innerHTML"],$={key:6,style:{width:"100px",height:"100px",border:"solid #c2c2c2 1px","border-radius":"11px","background-color":"#e7e7e7",display:"flex","justify-content":"center","align-items":"center"}},z=I(()=>d("div",null,[d("div",{style:{display:"flex","justify-content":"center","align-items":"center"}},[d("span",{style:{"font-size":"22px","font-weight":"bold"},class:"tn-icon-add"})]),d("div",{style:{display:"flex","justify-content":"center","align-items":"center"}},[d("span",null,"\u9009\u62E9\u56FE\u7247")])],-1)),A=[z],D={class:"button"},H=C("\u63D0\u4EA4"),M=w({props:{config:null},setup(r){return(p,m)=>{const i=t("el-input"),x=t("el-radio"),v=t("el-radio-group"),h=t("el-checkbox"),b=t("el-checkbox-group"),V=t("el-option"),g=t("el-select"),k=t("el-form-item"),F=t("el-button"),U=t("el-form");return o(),a("div",null,[d("div",N,L(r.config.title),1),f(U,{model:p.form},{default:s(()=>[(o(!0),a(c,null,_(r.config.fromList,(e,B)=>(o(),a(c,{key:B},[e.type=="richText"?(o(),a("div",{key:0,style:{padding:"10px 0px"},innerHTML:e.text},null,8,T)):(o(),n(k,{key:1,label:e.text},{default:s(()=>[e.type=="text"?(o(),n(i,{key:0,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,placeholder:`\u8BF7\u8F93\u5165${e.text}`},null,8,["modelValue","onUpdate:modelValue","placeholder"])):u("",!0),e.type=="textarea"?(o(),n(i,{key:1,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,placeholder:`\u8BF7\u8F93\u5165${e.text}`,type:"textarea",rows:5},null,8,["modelValue","onUpdate:modelValue","placeholder"])):u("",!0),e.type=="number"?(o(),n(i,{key:2,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,placeholder:`\u8BF7\u8F93\u5165${e.text}`,type:"number"},null,8,["modelValue","onUpdate:modelValue","placeholder"])):u("",!0),e.type=="radio"?(o(),n(v,{key:3,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},{default:s(()=>[(o(!0),a(c,null,_(e.itemList,(l,y)=>(o(),n(x,{label:l.name,value:l.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):u("",!0),e.type=="checkbox"?(o(),n(b,{key:4,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},{default:s(()=>[(o(!0),a(c,null,_(e.itemList,(l,y)=>(o(),n(h,{label:l.name,value:l.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):u("",!0),e.type=="selection"?(o(),n(g,{key:5,modelValue:p.form.region,"onUpdate:modelValue":m[0]||(m[0]=l=>p.form.region=l),placeholder:"\u8BF7\u9009\u62E9"},{default:s(()=>[(o(!0),a(c,null,_(e.itemList,(l,y)=>(o(),n(V,{label:l.name,value:l.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue"])):u("",!0),e.type=="upload"?(o(),a("div",$,A)):u("",!0)]),_:2},1032,["label"]))],64))),128)),d("div",D,[f(F,{type:"primary",onClick:p.onSubmit},{default:s(()=>[H]),_:1},8,["onClick"])])]),_:1},8,["model"])])}}});const q=j(M,[["__scopeId","data-v-b2e1f352"]]);export{q as default};
