fix(form): form rules type error (#3150)
parent
f38c5a2f43
commit
e29ad47995
|
@ -52,7 +52,7 @@ export const FormProps = {
|
|||
prefixCls: PropTypes.string,
|
||||
hideRequiredMark: PropTypes.looseBool,
|
||||
model: PropTypes.object,
|
||||
rules: { type: Object as PropType<ValidationRule[]> },
|
||||
rules: { type: Object as PropType<{[k: string]: ValidationRule[] | ValidationRule}> },
|
||||
validateMessages: PropTypes.object,
|
||||
validateOnRuleChange: PropTypes.looseBool,
|
||||
// 提交失败自动滚动到第一个错误字段
|
||||
|
|
Loading…
Reference in New Issue