@zgfe/business-lib 1.2.50-alpha.4 → 1.2.50-alpha.6
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.
- package/es/addToPanel/index.js +6 -5
- package/package.json +2 -2
package/es/addToPanel/index.js
CHANGED
|
@@ -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,11 +184,9 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
181
184
|
message: '请选择显示'
|
|
182
185
|
}]
|
|
183
186
|
}, /*#__PURE__*/React.createElement(WholeChart, {
|
|
184
|
-
options:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
})), ((_props$params = props.params) === null || _props$params === void 0 ? void 0 : _props$params.dimension) && !/grid/g.test(type) && /*#__PURE__*/React.createElement(Form.Item, {
|
|
188
|
-
label: "",
|
|
187
|
+
options: options
|
|
188
|
+
})), ((_props$params = props.params) === null || _props$params === void 0 ? void 0 : _props$params.dimension) && !RegExp('grid|map', 'g').test(type) && /*#__PURE__*/React.createElement(Form.Item, {
|
|
189
|
+
label: " ",
|
|
189
190
|
name: "showList",
|
|
190
191
|
colon: false,
|
|
191
192
|
rules: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.50-alpha.
|
|
3
|
+
"version": "1.2.50-alpha.6",
|
|
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": "
|
|
58
|
+
"gitHead": "7fd6d4396ad5a616914305fe6b2f18dcc1ac37c7",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|