fix(form): form rules type error (#3150)

pull/3164/head
Jason 4 years ago committed by GitHub
parent f38c5a2f43
commit e29ad47995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save