import{I as L}from"./Imgs-ec8274aa-1782572373740v=1.0.0.js";import{u as C}from"./useDynamicFormHook-1d702eb2-1782572373740v=1.0.0.js";import{y as O,c as p,al as m,z as a,A as i,M as t,I as r,J as u,Q as c,a4 as y,O as v,P as _,F as B,u as d,k as D,L as w}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{_ as N}from"./index-f6f689f9-1782572373740v=1.0.0.js";const P={style:{width:"100%"}},U=O({__name:"AddFormItemLine",props:{info:{default:{}},value:{default:null}},emits:["update:value"],setup(b,{emit:g}){const{getInputType:I}=C(),l=b,T=p(()=>{var e,s;return((e=l.info)==null?void 0:e.fieldType)==="img"?L:I((s=l.info)==null?void 0:s.fieldType)}),k=p(()=>{var e;return((e=l.info)==null?void 0:e.fieldType)==="img"?"fileList":"modelValue"}),f=p({get:()=>l.value,set:e=>{V("update:value",e)}}),V=g;return(e,s)=>{const h=m("el-radio"),A=m("el-checkbox"),F=m("el-option");return a(),i("div",P,[t(` {{ info.fieldType }}\r
		{{ baseValue }}baseValue `),(a(),r(w(d(T)),B({placeholder:e.info.prompt,[d(k)]:d(f),["onUpdate:"+d(k)]:s[0]||(s[0]=o=>D(f)?f.value=o:null),disabled:e.info.disabled},e.info.prop),{default:u(()=>[t(" \u5355\u9009 "),["radio"].indexOf(e.info.fieldType)!==-1?(a(!0),i(c,{key:0},y(e.info.selectValues,(o,n)=>(a(),r(h,{key:n,name:o,value:n},{default:u(()=>[v(_(o),1)]),_:2},1032,["name","value"]))),128)):t("v-if",!0),t(" \u591A\u9009 "),["checkbox"].indexOf(e.info.fieldType)!==-1?(a(!0),i(c,{key:1},y(e.info.selectValues,(o,n)=>(a(),r(A,{key:n,name:o,value:n},{default:u(()=>[v(_(o),1)]),_:2},1032,["name","value"]))),128)):t("v-if",!0),["select"].indexOf(e.info.fieldType)!==-1?(a(!0),i(c,{key:2},y(e.info.selectValues,(o,n)=>(a(),r(F,{key:n,value:o},{default:u(()=>[v(_(o),1)]),_:2},1032,["value"]))),128)):t("v-if",!0)]),_:1},16,["placeholder","disabled"]))])}}});const J=N(U,[["__scopeId","data-v-1cb3f6df"]]);export{J as A};
