@zgfe/business-lib 1.2.40-heyh.4 → 1.2.40

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.
@@ -56,50 +56,31 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
56
56
  setCurrentAttr(getValue(props.value));
57
57
  }, [props.value, props.extra]);
58
58
  function getValue(param) {
59
- console.log('lib属性筛选 - start:', param, eventEnvList, eventGroupList, userPropList);
60
59
  var res = undefined;
61
- var hasKey = param && param.key;
62
60
  if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'envProp') {
63
61
  eventEnvList === null || eventEnvList === void 0 ? void 0 : eventEnvList.forEach(function (attr) {
64
- if (hasKey) {
65
- if (attr.key === param.key) res = attr;
66
- } else {
67
- if (attr.name === param.name && attr.id === param.id) res = attr;
68
- }
62
+ if (attr.id === param.id && attr.name === (param.name || param.value)) res = attr;
69
63
  });
70
64
  } else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'eventProp') {
71
65
  eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
72
66
  group.eventList.forEach(function (event) {
73
67
  event.attrList.forEach(function (attr) {
74
- if (hasKey) {
75
- if (attr.key === param.key) res = _.cloneDeep(attr);
76
- } else {
77
- if (attr.id === param.id && attr.id === param.id) res = _.cloneDeep(attr);
78
- }
68
+ if (attr.id === param.id) res = _.cloneDeep(attr);
79
69
  });
80
70
  });
81
71
  });
82
72
  if (res && param.step !== undefined) res.step = param.step;
83
73
  } else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'userProp') {
84
74
  userPropList === null || userPropList === void 0 ? void 0 : userPropList.forEach(function (attr) {
85
- if (hasKey) {
86
- if (attr.key === param.key) res = attr;
87
- } else {
88
- if (attr.name === param.name && attr.category === param.category && attr.id === param.id) res = attr;
89
- }
75
+ if (attr.id === param.id && attr.category === param.category && attr.name === (param.name || param.value)) res = attr;
90
76
  });
91
77
  } else {
92
78
  extra === null || extra === void 0 ? void 0 : extra.forEach(function (item) {
93
79
  item.attrList.forEach(function (attr) {
94
- if (hasKey) {
95
- if (attr.key === (param === null || param === void 0 ? void 0 : param.key)) res = _.cloneDeep(attr);
96
- } else {
97
- if (attr.id === (param === null || param === void 0 ? void 0 : param.id)) res = _.cloneDeep(attr);
98
- }
80
+ if (attr.id === (param === null || param === void 0 ? void 0 : param.id)) res = _.cloneDeep(attr);
99
81
  });
100
82
  });
101
83
  }
102
- console.log('lib属性筛选 - end:', res);
103
84
  return res;
104
85
  }
105
86
  function onDelete(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.40-heyh.4",
3
+ "version": "1.2.40",
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": "3e569c324e3d7cad8302e3986ad9a4f5b9ca48fd",
58
+ "gitHead": "104af980abb5e32f0fda664364bfa6d91038f74b",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }