rc-field-form
Advanced tools
Comparing version 0.0.0-alpha.1 to 0.0.0-alpha.2
@@ -12,2 +12,6 @@ import * as React from 'react'; | ||
validateMessages?: ValidateMessages; | ||
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__?: { | ||
NOT_CONTAIN_FORM?: boolean; | ||
HOOK_MARK: string; | ||
}; | ||
onValuesChange?: Callbacks['onValuesChange']; | ||
@@ -14,0 +18,0 @@ onFieldsChange?: Callbacks['onFieldsChange']; |
@@ -32,3 +32,4 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
onFinish = _ref.onFinish, | ||
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish"]); | ||
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ = _ref.__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__, | ||
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish", "__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__"]); | ||
@@ -99,2 +100,9 @@ var formContext = React.useContext(FormContext); // We customize handle event since Context will makes all the consumer re-render: | ||
prevFieldsRef.current = fields; | ||
if (__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.NOT_CONTAIN_FORM && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.HOOK_MARK === 'asdihasiodhaohdioahfoihsoefhisihifhsiofhiosfd') { | ||
return React.createElement(FieldContext.Provider, { | ||
value: formInstance | ||
}, childrenNode); | ||
} | ||
return React.createElement("form", Object.assign({}, restProps, { | ||
@@ -101,0 +109,0 @@ onSubmit: function onSubmit(event) { |
@@ -12,2 +12,6 @@ import * as React from 'react'; | ||
validateMessages?: ValidateMessages; | ||
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__?: { | ||
NOT_CONTAIN_FORM?: boolean; | ||
HOOK_MARK: string; | ||
}; | ||
onValuesChange?: Callbacks['onValuesChange']; | ||
@@ -14,0 +18,0 @@ onFieldsChange?: Callbacks['onFieldsChange']; |
@@ -46,3 +46,4 @@ "use strict"; | ||
onFinish = _ref.onFinish, | ||
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish"]); | ||
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ = _ref.__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__, | ||
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish", "__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__"]); | ||
@@ -113,2 +114,9 @@ var formContext = React.useContext(_FormContext.default); // We customize handle event since Context will makes all the consumer re-render: | ||
prevFieldsRef.current = fields; | ||
if (__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.NOT_CONTAIN_FORM && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.HOOK_MARK === 'asdihasiodhaohdioahfoihsoefhisihifhsiofhiosfd') { | ||
return React.createElement(_FieldContext.default.Provider, { | ||
value: formInstance | ||
}, childrenNode); | ||
} | ||
return React.createElement("form", Object.assign({}, restProps, { | ||
@@ -115,0 +123,0 @@ onSubmit: function onSubmit(event) { |
{ | ||
"name": "rc-field-form", | ||
"version": "0.0.0-alpha.1", | ||
"version": "0.0.0-alpha.2", | ||
"description": "React Form Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194889
4182