import{n as i,Q as t,S as f}from"./index.js";function g({callback:a,failStatus:s,requiredRemark:n}){const e=i(null),r=t({status:"",remark:""}),u=t({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&&a())};return n||f(()=>u.remark[0].required=r.status===s),{formRef:e,formRules:u,formData:r,handleChangeStatus:o}}export{g as u};
