@zgfe/business-lib 1.2.50-alpha.4 → 1.2.50-alpha.5

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.
@@ -172,6 +172,9 @@ var BizAddToPanel = function BizAddToPanel(props) {
172
172
  var showBox = function showBox(type, module) {
173
173
  if (module && ['duration_avg', 'active', 'add', 'duration'].includes(module)) {
174
174
  var _props$styleOptions, _props$styleOptions$f, _props$params;
175
+ var options = (_props$styleOptions = props.styleOptions) === null || _props$styleOptions === void 0 ? void 0 : (_props$styleOptions$f = _props$styleOptions.find(function (item) {
176
+ return RegExp(item.value, 'g').test(type);
177
+ })) === null || _props$styleOptions$f === void 0 ? void 0 : _props$styleOptions$f.optionList;
175
178
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, {
176
179
  label: "\u663E\u793A",
177
180
  name: "extendTarget",
@@ -181,10 +184,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
181
184
  message: '请选择显示'
182
185
  }]
183
186
  }, /*#__PURE__*/React.createElement(WholeChart, {
184
- options: (_props$styleOptions = props.styleOptions) === null || _props$styleOptions === void 0 ? void 0 : (_props$styleOptions$f = _props$styleOptions.find(function (item) {
185
- return item.value == type;
186
- })) === null || _props$styleOptions$f === void 0 ? void 0 : _props$styleOptions$f.optionList
187
- })), ((_props$params = props.params) === null || _props$params === void 0 ? void 0 : _props$params.dimension) && !/grid/g.test(type) && /*#__PURE__*/React.createElement(Form.Item, {
187
+ options: options
188
+ })), ((_props$params = props.params) === null || _props$params === void 0 ? void 0 : _props$params.dimension) && !RegExp('grid', 'g').test(type) && /*#__PURE__*/React.createElement(Form.Item, {
188
189
  label: "",
189
190
  name: "showList",
190
191
  colon: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.50-alpha.4",
3
+ "version": "1.2.50-alpha.5",
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": "51a2d87eb19ed067a6c4866bd06f66e7de5768cb",
58
+ "gitHead": "081b118a7cccc7db333b1c2e5fd237e2600af647",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }