@zgfe/business-lib 1.2.70-hxd.31 → 1.2.70-hxd.33

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.
@@ -126,8 +126,9 @@ var StringList = function StringList(props) {
126
126
  method: 'post',
127
127
  data: requestData
128
128
  }).then(function (result) {
129
+ var data = result === null || result === void 0 ? void 0 : result.data;
129
130
  setOptions(function () {
130
- return result && result.sources ? result.sources.map(function (item) {
131
+ return data && data.sources ? data.sources.map(function (item) {
131
132
  return {
132
133
  name: item,
133
134
  value: item
@@ -440,7 +440,7 @@ var AttrListPanel = function AttrListPanel(props) {
440
440
  });
441
441
  var childList = [];
442
442
  group.children.forEach(function (option) {
443
- if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test((option === null || option === void 0 ? void 0 : option.alias) || (option === null || option === void 0 ? void 0 : option.label))) return;
443
+ if (searchValue && !(new RegExp(_.escapeRegExp(searchValue), 'i').test(option === null || option === void 0 ? void 0 : option.alias) || new RegExp(_.escapeRegExp(searchValue), 'i').test(option === null || option === void 0 ? void 0 : option.label))) return;
444
444
  var disabled = false;
445
445
  disableItemlist === null || disableItemlist === void 0 ? void 0 : disableItemlist.forEach(function (item) {
446
446
  if (item.key === option.key) disabled = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.70-hxd.31",
3
+ "version": "1.2.70-hxd.33",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "d350341e3262f3a40acada076b2bb7ba18588b8e",
58
+ "gitHead": "c2ada5bffae81a0952adb922dea1fa6292250b35",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }