@zgfe/business-lib 1.2.50-ljy.0 → 1.2.50-ljy.2

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.
@@ -27,7 +27,7 @@ import _ from 'lodash';
27
27
  import WholeChart from './components/wholeChart';
28
28
  export var classPrefix = 'biz-addtopanel';
29
29
  var BizAddToPanel = function BizAddToPanel(props) {
30
- var _props$params2;
30
+ var _props$params2, _props$defaultValue2, _props$defaultValue3;
31
31
  var refForm = useRef();
32
32
  var _useState = useState(false),
33
33
  _useState2 = _slicedToArray(_useState, 2),
@@ -244,9 +244,9 @@ var BizAddToPanel = function BizAddToPanel(props) {
244
244
  }, /*#__PURE__*/React.createElement(Form, {
245
245
  ref: refForm,
246
246
  onFinish: onSubmit,
247
- initialValues: Object.assign(['duration_avg', 'active', 'add', 'duration'].includes((_props$params2 = props.params) === null || _props$params2 === void 0 ? void 0 : _props$params2.module) ? {
247
+ initialValues: Object.assign(((_props$params2 = props.params) === null || _props$params2 === void 0 ? void 0 : _props$params2.overall) ? {
248
248
  showList: 'dynamic',
249
- chartType: 'line'
249
+ chartType: ((_props$defaultValue2 = props.defaultValue) === null || _props$defaultValue2 === void 0 ? void 0 : _props$defaultValue2.chartType.indexOf('number')) != -1 ? 'number' : (_props$defaultValue3 = props.defaultValue) === null || _props$defaultValue3 === void 0 ? void 0 : _props$defaultValue3.chartType
250
250
  } : {}, props.defaultValue),
251
251
  requiredMark: false
252
252
  }, /*#__PURE__*/React.createElement(Form.Item, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.50-ljy.0",
3
+ "version": "1.2.50-ljy.2",
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": "f14e1ad3838e81617a90729d62c1f891ec42170a",
58
+ "gitHead": "4910fd11bf3e4f2232b9df8256c9b33f20794f09",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }