No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
2.5KB

  1. import{d as S,r as p,c as i,e as v,G as c,i as r,h as e}from"./index.a2494fc2.js";const V=S({name:"safetyInput"}),w=Object.assign(V,{setup(b,{expose:m}){const n=p({}),d=p(),s={engineeringSpeedOne:[{required:!0,message:"\u8BF7\u586B\u5199\u7B2C\u4E00\u5B63\u5EA6\u8FDB\u5EA6",trigger:"blur"}],engineeringSpeedTwo:[{required:!0,message:"\u8BF7\u586B\u5199\u7B2C\u4E8C\u5B63\u5EA6\u8FDB\u5EA6",trigger:"blur"}],engineeringSpeedThree:[{required:!0,message:"\u8BF7\u586B\u5199\u7B2C\u4E09\u5B63\u5EA6\u8FDB\u5EA6",trigger:"blur"}],engineeringSpeedFour:[{required:!0,message:"\u8BF7\u586B\u5199\u7B2C\u56DB\u5B63\u5EA6\u8FDB\u5EA6",trigger:"blur"}]};return m({validForm:o=>{d.value.validate(l=>{o(l)})},formData:n,setFormData:o=>{n.value={engineeringSpeedOne:o.engineeringSpeedOne,engineeringSpeedTwo:o.engineeringSpeedTwo,engineeringSpeedThree:o.engineeringSpeedThree,engineeringSpeedFour:o.engineeringSpeedFour}}}),(o,l)=>{const t=i("el-input"),g=i("el-form-item"),u=i("el-col"),_=i("el-row"),f=i("el-form");return v(),c(f,{ref_key:"formRef",ref:d,model:n.value,rules:s,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:r(()=>[e(_,{gutter:40},{default:r(()=>[e(u,{span:12},{default:r(()=>[e(g,{label:"\u7B2C\u4E00\u5B63\u5EA6",prop:"engineeringSpeedOne"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedOne,"onUpdate:modelValue":l[0]||(l[0]=a=>n.value.engineeringSpeedOne=a),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:r(()=>[e(g,{label:"\u7B2C\u4E8C\u5B63\u5EA6",prop:"engineeringSpeedTwo"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedTwo,"onUpdate:modelValue":l[1]||(l[1]=a=>n.value.engineeringSpeedTwo=a),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:r(()=>[e(g,{label:"\u7B2C\u4E09\u5B63\u5EA6",prop:"engineeringSpeedThree"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedThree,"onUpdate:modelValue":l[2]||(l[2]=a=>n.value.engineeringSpeedThree=a),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:r(()=>[e(g,{label:"\u7B2C\u56DB\u5B63\u5EA6",prop:"engineeringSpeedFour"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedFour,"onUpdate:modelValue":l[3]||(l[3]=a=>n.value.engineeringSpeedFour=a),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{w as default};