cloud-business 0.1.120-6 → 0.1.120-7

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/cloud-business.js CHANGED
@@ -38801,6 +38801,11 @@
38801
38801
  var _this;
38802
38802
  _classCallCheck(this, shopSelectorForm);
38803
38803
  _this = _callSuper(this, shopSelectorForm, [props]);
38804
+ _this.offlineFieldNames = {
38805
+ label: 'regionName',
38806
+ value: 'regionId',
38807
+ children: 'children'
38808
+ };
38804
38809
  /**
38805
38810
  * 店铺数据
38806
38811
  * */
@@ -38917,7 +38922,7 @@
38917
38922
  };
38918
38923
  _this.handleOfflineFilter = function (inputValue, path) {
38919
38924
  return path.some(function (option) {
38920
- return option.name.toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
38925
+ return option[_this.offlineFieldNames.label].toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
38921
38926
  });
38922
38927
  };
38923
38928
  _this.handleOfflineAddress = function (value, selectedOption) {
@@ -39048,11 +39053,7 @@
39048
39053
  placeholder: "\u8BF7\u9009\u62E9\u7EBF\u4E0B\u5E97\u94FA\u533A\u57DF",
39049
39054
  changeOnSelect: true,
39050
39055
  className: "shop-form-cascader",
39051
- fieldNames: {
39052
- label: 'regionName',
39053
- value: 'regionId',
39054
- children: 'children'
39055
- },
39056
+ fieldNames: _objectSpread2({}, this.offlineFieldNames),
39056
39057
  showSearch: {
39057
39058
  filter: this.handleOfflineFilter
39058
39059
  },
@@ -39384,8 +39385,9 @@
39384
39385
  var tmp = new RegExp("^".concat(platCode), 'gi');
39385
39386
  tmp.test(x) && result.push(x.replace(tmp, "".concat(platCode.substring(0, platCode.length - 1), "|")));
39386
39387
  });
39388
+ } else {
39389
+ result.push(x);
39387
39390
  }
39388
- result.push(x);
39389
39391
  });
39390
39392
  return result.toString();
39391
39393
  };
@@ -146589,7 +146591,7 @@
146589
146591
  }
146590
146592
  // 检验当前运行环境
146591
146593
  if (typeof window === 'undefined') {
146592
- console.warn('cloud-business@0.1.120-6 仅支持在浏览器环境进行使用!');
146594
+ console.warn('cloud-business@0.1.120-7 仅支持在浏览器环境进行使用!');
146593
146595
  }
146594
146596
  var bodys = document.getElementsByTagName('body')[0];
146595
146597
  var colors = [1, 2, 3, 4, 5, 6, 7];
@@ -146599,7 +146601,7 @@
146599
146601
  bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
146600
146602
  }
146601
146603
  }
146602
- var version = '0.1.120-6';
146604
+ var version = '0.1.120-7';
146603
146605
 
146604
146606
  exports.AreaSelector = AreaSelector;
146605
146607
  exports.AreaSelectorNew = AreaSelector$1;