Comparing version 0.5.0 to 0.5.1
@@ -62,3 +62,3 @@ 'use strict'; | ||
this.cachedBind = {}; | ||
var bindMethods = ['getFieldProps', 'isFieldValidating', 'getFieldError', 'validateFieldsByName', 'getFieldsValue', 'setFieldsValue', 'getFieldValue']; | ||
var bindMethods = ['getFieldProps', 'isFieldValidating', 'getFieldError', 'setFields', 'validateFieldsByName', 'getFieldsValue', 'setFieldsValue', 'getFieldValue']; | ||
bindMethods.forEach(function (m) { | ||
@@ -256,2 +256,3 @@ _this[m] = _this[m].bind(_this); | ||
setFieldsValue: this.setFieldsValue, | ||
setFields: this.setFields, | ||
getFieldProps: this.getFieldProps, | ||
@@ -258,0 +259,0 @@ getFieldError: this.getFieldError, |
{ | ||
"name": "rc-form", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "React High Order Form Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -119,2 +119,6 @@ # rc-form | ||
### setFields(obj: Object) | ||
set fields by kv object. each field can contain errors and value member. | ||
### validateFields([fieldNames: String[]], callback: Function(errors, values)) | ||
@@ -121,0 +125,0 @@ |
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
247069
4595
146