import{d as b,r as o,e as y,L as x,x as V,a as l,o as w,v as D,w as u,f as r,W as I,A as q,D as z,I as F,_ as G,__tla as U}from"./index-04f8d540.js";import{b as k,__tla as A}from"./index-4123af92.js";let _,L=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{_=G(b({__name:"Demo03GradeForm",props:{studentId:{type:null,required:!0}},setup(c,{expose:f}){const p=c,t=o(!1),e=o([]),v=y({studentId:[{required:!0,message:"\u5B66\u751F\u7F16\u53F7\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],name:[{required:!0,message:"\u540D\u5B57\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],teacher:[{required:!0,message:"\u73ED\u4E3B\u4EFB\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),m=o();return x(()=>p.studentId,async s=>{if(e.value={id:void 0,studentId:void 0,name:void 0,teacher:void 0},s)try{t.value=!0;const a=await k(s);if(!a)return;e.value=a}finally{t.value=!1}},{immediate:!0}),f({validate:()=>m.value.validate(),getData:()=>e.value}),(s,a)=>{const n=I,i=q,g=z,h=F;return V((w(),D(g,{ref_key:"formRef",ref:m,model:l(e),rules:l(v),"label-width":"100px"},{default:u(()=>[r(i,{label:"\u540D\u5B57",prop:"name"},{default:u(()=>[r(n,{modelValue:l(e).name,"onUpdate:modelValue":a[0]||(a[0]=d=>l(e).name=d),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57"},null,8,["modelValue"])]),_:1}),r(i,{label:"\u73ED\u4E3B\u4EFB",prop:"teacher"},{default:u(()=>[r(n,{modelValue:l(e).teacher,"onUpdate:modelValue":a[1]||(a[1]=d=>l(e).teacher=d),placeholder:"\u8BF7\u8F93\u5165\u73ED\u4E3B\u4EFB"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[h,l(t)]])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/infra/demo/demo03/normal/components/Demo03GradeForm.vue"]])});export{L as __tla,_ as default};
