ValidationRule
约 131 字小于 1 分钟
2025-10-13
Karin API Docs / ValidationRule
接口: ValidationRule
定义于: packages/core/src/types/components/input.ts:6
验证规则接口
属性
error?
optionalerror:string
定义于: packages/core/src/types/components/input.ts:18
自定义错误消息
max?
optionalmax:number
定义于: packages/core/src/types/components/input.ts:16
最大值
maxLength?
optionalmaxLength:number
定义于: packages/core/src/types/components/input.ts:12
最大长度
min?
optionalmin:number
定义于: packages/core/src/types/components/input.ts:14
最小值
minLength?
optionalminLength:number
定义于: packages/core/src/types/components/input.ts:10
最小长度
regex?
optionalregex:string|RegExp
定义于: packages/core/src/types/components/input.ts:8
正则表达式
