@alifd/field
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -46,20 +46,4 @@ "use strict"; | ||
this.values = options.values || {}; | ||
/** | ||
* processErrorMessage | ||
* Implement when extending Field | ||
* Takes in a React-like element, clones and adds 'error' as key | ||
* @param {ReactElement | String} element | ||
* @returns {ReactElement | String} | ||
*/ | ||
/* | ||
processErrorMessage(element) { | ||
if (element && isValidElement(element)) { | ||
return cloneElement(element, { key: 'error' }); | ||
} | ||
return element; | ||
} | ||
*/ | ||
this.processErrorMessage = options.processErrorMessage; | ||
this.afterValidateRerender = options.afterValidateRerender; | ||
this.options = Object.assign({ | ||
@@ -661,7 +645,6 @@ parseName: false, | ||
_this8._reRender(); // NOTE: Implement `afterValidate` when extending Field to have post validate logic | ||
_this8._reRender(); | ||
if (typeof _this8.afterValidate === 'function') { | ||
_this8.afterValidate({ | ||
if (typeof _this8.afterValidateRerender === 'function') { | ||
_this8.afterValidateRerender({ | ||
errorsGroup: errorsGroup, | ||
@@ -668,0 +651,0 @@ options: _this8.options, |
{ | ||
"name": "@alifd/field", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Fields can be used to manage data when it comes to form data manipulation and validation. After being associated with a component, the form data can be automatically written back, read, and verified.", | ||
@@ -81,3 +81,3 @@ "files": [ | ||
}, | ||
"homepage": "https://unpkg.com/@alifd/field@1.0.0/build/index.html", | ||
"homepage": "https://unpkg.com/@alifd/field@1.0.1/build/index.html", | ||
"bugs": "https://github.com/alibaba-fusion/field/issues", | ||
@@ -84,0 +84,0 @@ "publishConfig": { |
1390174
4166