We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f38c5a2 commit e29ad47Copy full SHA for e29ad47
components/form/Form.tsx
@@ -52,7 +52,7 @@ export const FormProps = {
52
prefixCls: PropTypes.string,
53
hideRequiredMark: PropTypes.looseBool,
54
model: PropTypes.object,
55
- rules: { type: Object as PropType<ValidationRule[]> },
+ rules: { type: Object as PropType<{[k: string]: ValidationRule[] | ValidationRule}> },
56
validateMessages: PropTypes.object,
57
validateOnRuleChange: PropTypes.looseBool,
58
// 提交失败自动滚动到第一个错误字段
0 commit comments