diff --git a/components/form/Form.tsx b/components/form/Form.tsx index f583a5bb1..02421d4ca 100755 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -52,7 +52,7 @@ export const FormProps = { prefixCls: PropTypes.string, hideRequiredMark: PropTypes.looseBool, model: PropTypes.object, - rules: { type: Object as PropType }, + rules: { type: Object as PropType<{[k: string]: ValidationRule[] | ValidationRule}> }, validateMessages: PropTypes.object, validateOnRuleChange: PropTypes.looseBool, // 提交失败自动滚动到第一个错误字段