1 |
- import{d as y,r as u,f as b,aS as V,C as w,a as l,o as q,l as I,w as o,i as r,U as x,H as D,K as G,N as U,_ as F,__tla as H}from"./index-82e357b2.js";import{b as P,__tla as k}from"./index-48f4cd71.js";let _,A=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return k}catch{}})()]).then(async()=>{_=F(y({__name:"Demo03GradeForm",props:{studentId:{type:null,required:!0}},setup(c,{expose:f}){const p=c,t=u(!1),e=u([]),v=b({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=u();return V(()=>p.studentId,async d=>{if(e.value={id:void 0,studentId:void 0,name:void 0,teacher:void 0},d)try{t.value=!0;const a=await P(d);if(!a)return;e.value=a}finally{t.value=!1}},{immediate:!0}),f({validate:()=>m.value.validate(),getData:()=>e.value}),(d,a)=>{const n=x,i=D,g=G,h=U;return w((q(),I(g,{ref_key:"formRef",ref:m,model:l(e),rules:l(v),"label-width":"100px"},{default:o(()=>[r(i,{label:"\u540D\u5B57",prop:"name"},{default:o(()=>[r(n,{modelValue:l(e).name,"onUpdate:modelValue":a[0]||(a[0]=s=>l(e).name=s),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57"},null,8,["modelValue"])]),_:1}),r(i,{label:"\u73ED\u4E3B\u4EFB",prop:"teacher"},{default:o(()=>[r(n,{modelValue:l(e).teacher,"onUpdate:modelValue":a[1]||(a[1]=s=>l(e).teacher=s),placeholder:"\u8BF7\u8F93\u5165\u73ED\u4E3B\u4EFB"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[h,l(t)]])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/infra/demo/demo03/normal/components/Demo03GradeForm.vue"]])});export{A as __tla,_ as default};
|