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