File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
packages/form-render-mobile/src Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ const FormCore = (props: any) => {
51
51
logOnSubmit,
52
52
className,
53
53
id,
54
+ validateMessages,
54
55
} = transformProps ( { ...props , ...schemaProps } ) ;
55
56
56
57
useEffect ( ( ) => {
@@ -117,7 +118,7 @@ const FormCore = (props: any) => {
117
118
if ( ! isFunction ( logOnSubmit ) ) {
118
119
return ;
119
120
}
120
-
121
+
121
122
const start = getSessionItem ( 'FORM_START' ) ;
122
123
const mount = getSessionItem ( 'FORM_MOUNT_TIME' ) ;
123
124
@@ -190,6 +191,7 @@ const FormCore = (props: any) => {
190
191
onFinish = { handleFinish }
191
192
onFinishFailed = { handleFinishFailed }
192
193
onValuesChange = { handleValuesChange }
194
+ validateMessages = { validateMessages }
193
195
>
194
196
< Grid columns = { 1 } >
195
197
< RenderCore schema = { schema } />
Original file line number Diff line number Diff line change @@ -71,19 +71,20 @@ export default function withProvider<T>(Element: React.ComponentType<T>): React.
71
71
< ConfigProvider
72
72
{ ...configProvider }
73
73
locale = { langPack }
74
- form = { {
75
- validateMessages : {
76
- ...formValidateMessages ,
77
- ...validateMessages
78
- }
79
- } }
80
74
>
81
75
< ConfigContext . Provider value = { configContext } >
82
76
< FRContext . Provider value = { store } >
83
- < Element form = { form } { ...otherProps } />
77
+ < Element
78
+ form = { form }
79
+ validateMessages = { {
80
+ ...formValidateMessages ,
81
+ ...validateMessages
82
+ } }
83
+ { ...otherProps }
84
+ />
84
85
</ FRContext . Provider >
85
86
</ ConfigContext . Provider >
86
87
</ ConfigProvider >
87
88
) ;
88
89
} ;
89
- }
90
+ }
You can’t perform that action at this time.
0 commit comments