You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example/index.js
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -883,12 +883,12 @@ class Index extends Component {
883
883
// locale: 'en-US', // Optional.[String].Default: "en-US". For error message display. Current options are ['zh-CN', 'en-US']; Default is 'en-US'.
884
884
// msgOnError: "Your custom error message if you provide the validationOption['msgOnError']", // Optional.[String].Default: "" Show your custom error message no matter what(except the message from customFunc) when it has error if it is provied.
885
885
// msgOnSuccess: "Your custom success message if you provide the validationOption['msgOnSuccess']. Otherwise, it will not show, not even green border." // Optional.[String].Default: "". Show your custom success message no matter what when it has error if it is provied.
886
-
// customFunc: res => { // Optional.[Func].Default: none. Custom function. Returns true or err message
// msgOnError: "Your custom error message if you provide the validationOption['msgOnError']", // Optional.[String].Default: "". Show your custom error message no matter what(except the message from customFunc) when it has error if it is provied.
1171
1171
// msgOnSuccess: "Your custom success message if you provide the validationOption['msgOnSuccess']. Otherwise, it will not show, not even green border." // Optional.[String].Default: "". Show your custom success message no matter what when it has error if it is provied.
1172
-
// customFunc: res => { // Optional.[Func].Default: none. Custom function. Returns true or err message
1173
-
// if (res != 'banana') {
1174
-
// return 'Description cannot be other things but banana';
console.error("The valid ".concat(_utils["default"].toCamelCase(TYPE)(true)," \"type\" options in validationOption are [").concat(VALIDATE_OPTION_TYPE_LIST.map(function(i){
355
-
returni;
356
-
}),"]"));
438
+
case49:
439
+
console.error("The valid ".concat(_utils["default"].toCamelCase(TYPE)(true)," \"type\" options in validationOption are [").concat(VALIDATE_OPTION_TYPE_LIST.map(function(i){
440
+
returni;
441
+
}),"]"));
442
+
443
+
case50:
444
+
_context.next=53;
445
+
break;
446
+
447
+
case52:
448
+
console.error('Please provide "type" in validationOption');
449
+
450
+
case53:
451
+
case"end":
452
+
return_context.stop();
453
+
}
357
454
}
358
-
}else{
359
-
console.error('Please provide "type" in validationOption');
0 commit comments