@zgfe/business-lib 1.2.50-ljy.5 → 1.2.50

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.
@@ -175,8 +175,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
175
175
  setLoading(false);
176
176
  });
177
177
  }
178
- var showBox = function showBox(type, overall) {
179
- if (overall) {
178
+ var showBox = function showBox(type, module) {
179
+ if (module && ['duration_avg', 'active', 'add', 'duration'].includes(module)) {
180
180
  var _props$styleOptions, _props$styleOptions$f, _props$params;
181
181
  var options = (_props$styleOptions = props.styleOptions) === null || _props$styleOptions === void 0 ? void 0 : (_props$styleOptions$f = _props$styleOptions.find(function (item) {
182
182
  return RegExp(item.value, 'g').test(type);
@@ -320,7 +320,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
320
320
  var _props$params3;
321
321
  var getFieldValue = _ref.getFieldValue;
322
322
  var type = getFieldValue('chartType');
323
- return showBox(type, (_props$params3 = props.params) === null || _props$params3 === void 0 ? void 0 : _props$params3.overall);
323
+ return showBox(type, (_props$params3 = props.params) === null || _props$params3 === void 0 ? void 0 : _props$params3.module);
324
324
  })));
325
325
  };
326
326
  BizAddToPanel.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.50-ljy.5",
3
+ "version": "1.2.50",
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": "b3dd34ff68ddea72e76364c86fcb05d7148128db",
58
+ "gitHead": "43bb6c649f157574dd89b35c9d491644708aecad",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }