var B=(e,a,r)=>new Promise((l,i)=>{var t=o=>{try{p(r.next(o))}catch(m){i(m)}},n=o=>{try{p(r.throw(o))}catch(m){i(m)}},p=o=>o.done?l(o.value):Promise.resolve(o.value).then(t,n);p((r=r.apply(e,a)).next())});import{B as h}from"./BasicForm.d11b68fd.js";import{u as P}from"./useForm.868c8e81.js";import{aP as $,a as g,cB as k,I as _,dw as F,r as I,aQ as u,o as d,aR as f,p as s,j as b,aS as C,q as v}from"./index.0d073eaa.js";import{P as S}from"./index.566277e5.js";/* empty css              *//* empty css              */import"./index.0fb15725.js";import"./index.965098be.js";import"./Checkbox.476f6e92.js";import"./index.1491cab6.js";import"./index.e317a008.js";import"./index.7075e2b7.js";import"./index.04f7e044.js";import"./index.e8daa066.js";import"./get.49a42f2e.js";import"./index.e8b360cf.js";import"./eagerComputed.156e81ff.js";import"./index.2b5ea4f6.js";import"./_baseIteratee.3919e7cf.js";import"./DeleteOutlined.247d1f35.js";import"./index.a8c197b8.js";import"./useRefs.e81831e2.js";import"./Form.48352728.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";import"./useSize.bb4e5ce5.js";import"./index.81899e8a.js";import"./index.c05f9254.js";import"./useWindowSizeFn.ef20ece8.js";import"./FullscreenOutlined.401a7bcd.js";import"./index.ffb8ac7d.js";import"./index.dd1f987c.js";import"./uuid.2b29000c.js";import"./download.bb4c9304.js";import"./base64Conver.08b9f4ec.js";import"./index.31930d74.js";import"./index.1d29734e.js";import"./uniqBy.ac0f9c38.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";const y=g({components:{BasicForm:h,CollapseContainer:k,PageWrapper:S,[_.name]:_,Button:F},setup(){const[e,{appendSchemaByField:a,removeSchemaByFiled:r,validate:l}]=P({schemas:[{field:"field0a",component:"Input",label:"\u5B57\u6BB50",colProps:{span:8},required:!0},{field:"field0b",component:"Input",label:"\u5B57\u6BB50",colProps:{span:8},required:!0},{field:"0",component:"Input",label:" ",colProps:{span:8},slot:"add"}],labelWidth:100,actionColOptions:{span:24}});function i(){return B(this,null,function*(){try{const o=yield l();console.log(o)}catch(o){console.log(o)}})}const t=I(1);function n(){a({field:`field${t.value}a`,component:"Input",label:"\u5B57\u6BB5"+t.value,colProps:{span:8},required:!0},""),a({field:`field${t.value}b`,component:"Input",label:"\u5B57\u6BB5"+t.value,colProps:{span:8},required:!0},""),a({field:`${t.value}`,component:"Input",label:" ",colProps:{span:8},slot:"add"},""),t.value++}function p(o){r([`field${o}a`,`field${o}b`,`${o}`]),t.value--}return{register:e,handleSubmit:i,add:n,del:p}}}),q=v("+"),N=v("-");function W(e,a,r,l,i,t){const n=u("Button"),p=u("BasicForm"),o=u("CollapseContainer"),m=u("PageWrapper");return d(),f(m,{title:"\u8868\u5355\u589E\u5220\u793A\u4F8B"},{default:s(()=>[b(o,{title:"\u8868\u5355\u589E\u5220"},{default:s(()=>[b(p,{onRegister:e.register,onSubmit:e.handleSubmit},{add:s(({field:c})=>[Number(c)===0?(d(),f(n,{key:0,onClick:e.add},{default:s(()=>[q]),_:1},8,["onClick"])):C("",!0),c>0?(d(),f(n,{key:1,onClick:w=>e.del(c)},{default:s(()=>[N]),_:2},1032,["onClick"])):C("",!0)]),_:1},8,["onRegister","onSubmit"])]),_:1})]),_:1})}var Fo=$(y,[["render",W]]);export{Fo as default};
