沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
提交 | 用户 | 时间
314507 1 import{J as n}from"./index-BP6bNRoi.js";const{t:m}=n(),t=()=>({required:a=>({required:!0,message:a||m("common.required")}),lengthRange:a=>{const{min:o,max:e,message:r}=a;return{min:o,max:e,message:r||m("common.lengthRange",{min:o,max:e})}},notSpace:a=>({validator:(o,e,r)=>{(e==null?void 0:e.indexOf(" "))!==-1?r(new Error(a||m("common.notSpace"))):r()}}),notSpecialCharacters:a=>({validator:(o,e,r)=>{/[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/gi.test(e)?r(new Error(a||m("common.notSpecialCharacters"))):r()}})});export{t as u};