1 |
- import{r as l,n as i,a as d,__tla as h}from"./index-286756b9.js";let m,u=Promise.all([(()=>{try{return h}catch{}})()]).then(async()=>{m=r=>{const o=l(),c=l(),a=async()=>{await i();const t=d(o);return t||console.error("The form is not registered. Please use the register method to register"),t},n={setProps:async(t={})=>{const e=await a();e==null||e.setProps(t),t.model&&(e==null||e.setValues(t.model))},setValues:async t=>{const e=await a();e==null||e.setValues(t)},setSchema:async t=>{const e=await a();e==null||e.setSchema(t)},addSchema:async(t,e)=>{const s=await a();s==null||s.addSchema(t,e)},delSchema:async t=>{const e=await a();e==null||e.delSchema(t)},getFormData:async()=>{const t=await a();return t==null?void 0:t.formModel}};return r&&n.setProps(r),{register:(t,e)=>{o.value=t,c.value=e},elFormRef:c,methods:n}}});export{u as __tla,m as u};
|