{"size": 2556, "ext": "js", "max_stars_repo_path": "flow-front-rest/src/main/resources/static/assets/AppendForm.64de4cf0.js", "max_stars_repo_name": "gm19900510/FLow", "max_stars_repo_stars_event_min_datetime": "2021-05-30T13:59:57.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T07:05:59.000Z", "max_issues_repo_path": "flow-front-rest/src/main/resources/static/assets/AppendForm.64de4cf0.js", "max_issues_repo_name": "gm19900510/FLow", "max_issues_repo_issues_event_min_datetime": "2021-06-03T09:20:27.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-06T08:55:53.000Z", "max_forks_repo_path": "flow-front-rest/src/main/resources/static/assets/AppendForm.64de4cf0.js", "max_forks_repo_name": "gm19900510/FLow", "max_forks_repo_forks_event_min_datetime": "2021-06-01T03:40:00.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T07:19:47.000Z"}
{"max_stars_count": 328, "max_issues_count": 8, "max_forks_count": 120, "avg_line_length": 1278.0, "max_line_length": 2555, "alphanum_fraction": 0.6208920188}
var B=(n,s,t)=>new Promise((l,i)=>{var o=e=>{try{a(t.next(e))}catch(p){i(p)}},r=e=>{try{a(t.throw(e))}catch(p){i(p)}},a=e=>e.done?l(e.value):Promise.resolve(e.value).then(o,r);a((t=t.apply(n,s)).next())});import{B as x,h}from"./useForm.9f66b55d.js";import{_ as v,ah as $,aC as g}from"./index.142c38e7.js";import{A as F,an as b,r as P,a0 as u,B as m,a1 as f,a5 as d,w as _,ac as j,ad as C}from"./vendor.5eb38889.js";import{P as k}from"./index.b7a6fc4b.js";/* empty css               *//* empty css               *//* empty css               *//* empty css              *//* empty css               *//* empty css                *//* empty css                */import"./index.b3cdb03b.js";import"./index.200f7a3e.js";import"./useWindowSizeFn.e269959a.js";import"./download.6a1de100.js";import"./index.03597360.js";/* empty css               *//* empty css               */import"./useContentViewHeight.c781d797.js";const I=F({components:{BasicForm:x,CollapseContainer:$,PageWrapper:k,[b.name]:b,Button:g},setup(){const[n,{appendSchemaByField:s,removeSchemaByFiled:t,validate:l}]=h({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 e=yield l();console.log(e)}catch(e){console.log(e)}})}const o=P(1);function r(){s({field:`field${o.value}a`,component:"Input",label:"\u5B57\u6BB5"+o.value,colProps:{span:8},required:!0},""),s({field:`field${o.value}b`,component:"Input",label:"\u5B57\u6BB5"+o.value,colProps:{span:8},required:!0},""),s({field:`${o.value}`,component:"Input",label:" ",colProps:{span:8},slot:"add"},""),o.value++}function a(e){t([`field${e}a`,`field${e}b`,`${e}`]),o.value--}return{register:n,handleSubmit:i,add:r,del:a}}}),S=C("+"),w=C("-");function y(n,s,t,l,i,o){const r=u("Button"),a=u("BasicForm"),e=u("CollapseContainer"),p=u("PageWrapper");return m(),f(p,{title:"\u8868\u5355\u589E\u5220\u793A\u4F8B"},{default:d(()=>[_(e,{title:"\u8868\u5355\u589E\u5220"},{default:d(()=>[_(a,{onRegister:n.register,onSubmit:n.handleSubmit},{add:d(({field:c})=>[Number(c)===0?(m(),f(r,{key:0,onClick:n.add},{default:d(()=>[S]),_:1},8,["onClick"])):j("",!0),c>0?(m(),f(r,{key:1,onClick:W=>n.del(c)},{default:d(()=>[w]),_:2},1032,["onClick"])):j("",!0)]),_:1},8,["onRegister","onSubmit"])]),_:1})]),_:1})}var Z=v(I,[["render",y]]);export{Z as default};
