tdesign-react 0.44.3-alpha.1 → 0.44.3-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tdesign.js CHANGED
@@ -37436,7 +37436,9 @@
37436
37436
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37437
37437
  function needValidate(name, fields) {
37438
37438
  if (!fields || !Array.isArray(fields)) return true;
37439
- return fields.indexOf(name) !== -1;
37439
+ return fields.some(function (item) {
37440
+ return String(item) === String(name);
37441
+ });
37440
37442
  }
37441
37443
  function formatValidateResult(validateResultList) {
37442
37444
  var result = validateResultList.reduce(function (r, err) {