1 |
- import{x as i,Z as a,a0 as f}from"./index.js";function g({callback:t,failStatus:s,requiredRemark:n}){const e=i(null),r=a({status:"",remark:""}),u=a({status:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"}],remark:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]}),o=()=>{e.value.validate(c=>c&&t())};return n||f(()=>u.remark[0].required=r.status===s),{formRef:e,formRules:u,formData:r,handleChangeStatus:o}}export{g as u};
|