const n=(t=64)=>({max:t,message:`最多输入${t}个字符`}),a=[n()],i=[n(200)],o=(t,s="input")=>{let e="输入";return["select","date"].includes(s)&&(e="选择"),{required:!0,message:`请${e}${t}`}},u=[{pattern:/^[a-zA-Z0-9_\-]+$/,message:"请输入英文或者数字或者-或者_"},a[0]],c=t=>{switch(t){case"int":return[{validator:(s,e)=>e<-2147483648?Promise.reject(`最小仅输入-${2147483648}`):e>2147483648?Promise.reject(`最大可输入${2147483648}`):Promise.resolve()}];case"long":return[{validator:(s,e)=>{const r=34028234663852886e22;return e<-r?Promise.reject(`最小仅输入-${r}`):e>r?Promise.reject(`最大可输入${r}`):Promise.resolve()}}];case"float":return[{validator:(s,e)=>{const r=9223372036854776e3;return e<-r?Promise.reject(`最小仅输入-${r}`):e>r?Promise.reject(`最大可输入${r}`):Promise.resolve()}}];case"string":return[n()];case"description":return[n(200)];default:return[]}};export{c as C,u as I,a as M,o as R,i as a};
