@zgfe/business-lib 1.1.67-beta.6 → 1.1.67-beta.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.
@@ -44,6 +44,7 @@ export default (function () {
44
44
  }
45
45
  callback({
46
46
  type: 'custom',
47
+ alias: name,
47
48
  eventName: name
48
49
  });
49
50
  };
@@ -17,6 +17,7 @@ export default (function () {
17
17
  }, /*#__PURE__*/React.createElement(BizFormulaTarget, {
18
18
  value: {
19
19
  type: 'custom',
20
+ alias: '自定义指标',
20
21
  eventName: '自定义指标'
21
22
  },
22
23
  onChange: onChange,
@@ -20,6 +20,7 @@ import _ from 'lodash';
20
20
  var classPrefix = 'biz-formula-target';
21
21
  var defaultValue = {
22
22
  type: 'custom',
23
+ alias: '自定义指标',
23
24
  eventName: '自定义指标'
24
25
  };
25
26
  var BizFormulaTarget = function BizFormulaTarget(props) {
@@ -96,9 +97,7 @@ var BizFormulaTarget = function BizFormulaTarget(props) {
96
97
  setOpen(true);
97
98
  return;
98
99
  }
99
- props.onChange && props.onChange(_objectSpread(_objectSpread({}, condition), {}, {
100
- alias: condition.eventName
101
- }));
100
+ props.onChange && props.onChange(condition);
102
101
  };
103
102
  var onDelete = function onDelete(e) {
104
103
  e.stopPropagation();
@@ -130,6 +129,7 @@ var BizFormulaTarget = function BizFormulaTarget(props) {
130
129
  var onChange = function onChange(customCondition, formula, resultFormat) {
131
130
  setCondition(function (value) {
132
131
  return _objectSpread(_objectSpread({}, value), {}, {
132
+ alias: value.eventName,
133
133
  customCondition: customCondition,
134
134
  formula: formula,
135
135
  resultFormat: resultFormat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.67-beta.6",
3
+ "version": "1.1.67-beta.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.12.0 || ^17.0.0",
61
61
  "yorkie": "^2.0.0"
62
62
  },
63
- "gitHead": "ddc4e5fd47df814c4b228d766969fdfb4433d201"
63
+ "gitHead": "36374f4bd6e15476920739f872d7d8bca8107d62"
64
64
  }