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