You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
969B

  1. import y from"./applicationInfo-d0f5a252.js";import{r as t,B as _,c as h,d as w,f as k,k as A,C as F}from"./index-dd5fae99.js";import"./index-b6aa4cff.js";const x={style:{display:"none"}},L=A({name:"hiddenAppForm"}),B=Object.assign(L,{props:{applicationList:Array,isFirst:{type:Number,default:void 0}},setup(n,{expose:c}){const i=n,o=t(),r=t([]),s=t(0),l=t(),f=async e=>{l.value=!0,s.value=0;for(const a of i.applicationList)await u(a);setTimeout(async()=>{l.value=!1,e(s.value===i.applicationList.length)})},u=async e=>(r.value=JSON.parse(JSON.stringify(e)),await F(),new Promise((a,N)=>{const p=[];p.push(new Promise((d,m)=>{o.value.validForm(v=>{v?d():m(!1)})})),Promise.all([...p]).then(()=>{s.value++}).finally(()=>{a()})}));return _(()=>i.applicationList,()=>{},{immediate:!0,deep:!0}),c({validAllAppForm:f}),(e,a)=>(h(),w("div",x,[k(y,{ref_key:"applicationInfoRef",ref:o,data:r.value,"is-first":n.isFirst},null,8,["data","is-first"])]))}});export{B as default};