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

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,6 +56,7 @@ 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);
59
60
  var res = undefined;
60
61
  var hasKey = param && param.key;
61
62
  if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'envProp') {
@@ -63,7 +64,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
63
64
  if (hasKey) {
64
65
  if (attr.key === param.key) res = attr;
65
66
  } else {
66
- if (attr.name === param.name) res = attr;
67
+ if (attr.name === param.name && attr.id === param.id) res = attr;
67
68
  }
68
69
  });
69
70
  } else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'eventProp') {
@@ -73,7 +74,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
73
74
  if (hasKey) {
74
75
  if (attr.key === param.key) res = _.cloneDeep(attr);
75
76
  } else {
76
- if (attr.id === param.id) res = _.cloneDeep(attr);
77
+ if (attr.id === param.id && attr.id === param.id) res = _.cloneDeep(attr);
77
78
  }
78
79
  });
79
80
  });
@@ -84,7 +85,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
84
85
  if (hasKey) {
85
86
  if (attr.key === param.key) res = attr;
86
87
  } else {
87
- if (attr.name === param.name && attr.category === param.category) res = attr;
88
+ if (attr.name === param.name && attr.category === param.category && attr.id === param.id) res = attr;
88
89
  }
89
90
  });
90
91
  } else {
@@ -98,6 +99,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
98
99
  });
99
100
  });
100
101
  }
102
+ console.log('lib属性筛选 - end:', res);
101
103
  return res;
102
104
  }
103
105
  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.2",
3
+ "version": "1.2.40-heyh.4",
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": "c154b402ec2093f3b3b38ee566e362dc71d31fd1",
58
+ "gitHead": "3e569c324e3d7cad8302e3986ad9a4f5b9ca48fd",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }