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-BN26Feep.js";import{u as I,B as h}from"./useForm-DfoT2G6J.js";import{_ as k}from"./index-Cy4uayzW.js";import"./componentMap-0iK4HQBq.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.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};
