@zgfe/business-lib 1.2.49 → 1.2.50-alpha.1

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.
@@ -168,7 +168,31 @@ var BizAddToPanel = function BizAddToPanel(props) {
168
168
  setLoading(false);
169
169
  });
170
170
  }
171
- var showBox = function showBox(type) {
171
+ var showBox = function showBox(type, module) {
172
+ if (module && ['duration_avg', 'active', 'add', 'duration'].includes(module)) {
173
+ var _props$params;
174
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, {
175
+ label: "\u663E\u793A",
176
+ name: "extendTarget",
177
+ colon: false,
178
+ rules: [{
179
+ required: true,
180
+ message: '请选择显示'
181
+ }]
182
+ }, /*#__PURE__*/React.createElement(NumberChart, {
183
+ options: props.styleOptions
184
+ })), ((_props$params = props.params) === null || _props$params === void 0 ? void 0 : _props$params.dimension) && /*#__PURE__*/React.createElement(Form.Item, {
185
+ label: "\u663E\u793A",
186
+ name: "showList",
187
+ colon: false,
188
+ rules: [{
189
+ required: true,
190
+ message: '请选择显示'
191
+ }]
192
+ }, /*#__PURE__*/React.createElement(RadioGroup, {
193
+ options: props.showOptions
194
+ })));
195
+ }
172
196
  if (type && type.indexOf('number') !== -1) {
173
197
  return /*#__PURE__*/React.createElement(Form.Item, {
174
198
  label: "\u663E\u793A",
@@ -280,9 +304,10 @@ var BizAddToPanel = function BizAddToPanel(props) {
280
304
  noStyle: true,
281
305
  shouldUpdate: true
282
306
  }, function (_ref) {
307
+ var _props$params2;
283
308
  var getFieldValue = _ref.getFieldValue;
284
309
  var type = getFieldValue('chartType');
285
- return showBox(type);
310
+ return showBox(type, (_props$params2 = props.params) === null || _props$params2 === void 0 ? void 0 : _props$params2.module);
286
311
  })));
287
312
  };
288
313
  BizAddToPanel.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.49",
3
+ "version": "1.2.50-alpha.1",
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": "ca8de780c0b4e3a6b8bfdfa0494ca0e6b79541ba",
58
+ "gitHead": "b68d2087298efade0f391fba51977ac4df0f148d",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }