var _=(f,n,e)=>new Promise((r,i)=>{var o=t=>{try{m(e.next(t))}catch(p){i(p)}},s=t=>{try{m(e.throw(t))}catch(p){i(p)}},m=t=>t.done?r(t.value):Promise.resolve(t.value).then(o,s);m((e=e.apply(f,n)).next())});import{d as B,f as y,U as C,a2 as u,ad as c,af as d,G as v,V as x,u as F}from"./vue-vendor-CxLCUzY4.js";import"./index-ByX9XNkE.js";import{u as I,B as h}from"./useForm-Dx3lJ3DG.js";import{_ as k}from"./index-CLZzJyTP.js";import"./componentMap-DpsJvoqz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";const w=B({__name:"BasicFormAdd",setup(f){const n=[{field:"name1",label:"姓名1",component:"Input",colProps:{span:8}},{field:"age1",label:"年龄1",component:"InputNumber",colProps:{span:8}},{field:"0",component:"Input",label:" ",colProps:{span:8},slot:"addForm"}],[e,{appendSchemaByField:r,removeSchemaByFiled:i}]=I({schemas:n,showResetButton:!1,labelWidth:"150px",submitButtonOptions:{text:"提交",preIcon:""},actionColOptions:{span:17}});let o=y(2);function s(){return _(this,null,function*(){yield r({field:`name${o.value}`,component:"Input",label:"字段"+o.value,colProps:{span:8}},""),yield r({field:`sex${o.value}`,component:"InputNumber",label:"字段"+o.value,colProps:{span:8}},""),yield r({field:`${o.value}`,component:"Input",label:" ",colProps:{span:8},slot:"addForm"},""),o.value++})}function m(p){i([`name${p}`,`sex${p}`,`${p}`]),o.value--}function t(p){}return(p,a)=>{const b=C("a-button");return u(),c(F(h),{onRegister:F(e),style:{"margin-top":"20px"},onSubmit:t},{addForm:d(({field:l})=>[Number(l)===0?(u(),c(b,{key:0,onClick:s,style:{width:"50px"}},{default:d(()=>a[0]||(a[0]=[v("+")])),_:1})):x("",!0),Number(l)>0?(u(),c(b,{key:1,onClick:$=>m(l),style:{width:"50px"}},{default:d(()=>a[1]||(a[1]=[v("-")])),_:2},1032,["onClick"])):x("",!0)]),_:1},8,["onRegister"])}}}),$o=k(w,[["__scopeId","data-v-731dc1f0"]]);export{$o as default};
