@zgfe/business-lib 1.2.54-plat.0 → 1.2.55-heyh.0

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, _props$defaultValue2, _props$defaultValue3;
30
+ var _props$params2, _props$params3, _props$params4;
31
31
  var refForm = useRef();
32
32
  var _useState = useState(false),
33
33
  _useState2 = _slicedToArray(_useState, 2),
@@ -175,8 +175,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
175
175
  setLoading(false);
176
176
  });
177
177
  }
178
- var showBox = function showBox(type, module) {
179
- if (module && ['duration_avg', 'active', 'add', 'duration'].includes(module)) {
178
+ var showBox = function showBox(type, overall) {
179
+ if (overall) {
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);
@@ -248,8 +248,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
248
248
  onFinish: onSubmit,
249
249
  initialValues: Object.assign(((_props$params2 = props.params) === null || _props$params2 === void 0 ? void 0 : _props$params2.overall) ? {
250
250
  showList: 'dynamic',
251
- 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
252
- } : {}, props.defaultValue),
251
+ chartType: ((_props$params3 = props.params) === null || _props$params3 === void 0 ? void 0 : _props$params3.chartType.indexOf('number')) != -1 ? 'number' : (_props$params4 = props.params) === null || _props$params4 === void 0 ? void 0 : _props$params4.chartType
252
+ } : {}, (props === null || props === void 0 ? void 0 : props.defaultValue) || {}),
253
253
  requiredMark: false
254
254
  }, /*#__PURE__*/React.createElement(Form.Item, {
255
255
  label: "\u770B\u677F",
@@ -317,10 +317,10 @@ var BizAddToPanel = function BizAddToPanel(props) {
317
317
  noStyle: true,
318
318
  shouldUpdate: true
319
319
  }, function (_ref) {
320
- var _props$params3;
320
+ var _props$params5;
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.module);
323
+ return showBox(type, (_props$params5 = props.params) === null || _props$params5 === void 0 ? void 0 : _props$params5.overall);
324
324
  })));
325
325
  };
326
326
  BizAddToPanel.defaultProps = {
@@ -1398,9 +1398,9 @@
1398
1398
  <pre><code class="language-css"
1399
1399
  >@font-face {
1400
1400
  font-family: 'bsicon';
1401
- src: url('iconfont.woff2?t=1724237872032') format('woff2'),
1402
- url('iconfont.woff?t=1724237872032') format('woff'),
1403
- url('iconfont.ttf?t=1724237872032') format('truetype');
1401
+ src: url('iconfont.woff2?t=1724914693920') format('woff2'),
1402
+ url('iconfont.woff?t=1724914693920') format('woff'),
1403
+ url('iconfont.ttf?t=1724914693920') format('truetype');
1404
1404
  }
1405
1405
  </code></pre>
1406
1406
  <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: "bsicon"; /* Project id 2545884 */
3
- src: url('iconfont.woff2?t=1724237872032') format('woff2'),
4
- url('iconfont.woff?t=1724237872032') format('woff'),
5
- url('iconfont.ttf?t=1724237872032') format('truetype');
3
+ src: url('iconfont.woff2?t=1724914693920') format('woff2'),
4
+ url('iconfont.woff?t=1724914693920') format('woff'),
5
+ url('iconfont.ttf?t=1724914693920') format('truetype');
6
6
  }
7
7
 
8
8
  .bsicon {
Binary file
Binary file
Binary file
@@ -3,6 +3,8 @@ declare const _default: {
3
3
  series: {
4
4
  names: string[];
5
5
  values: number[];
6
+ minValues: (number | null)[];
7
+ maxValues: (number | null)[];
6
8
  orderNum: number;
7
9
  }[];
8
10
  };
@@ -1,49 +1,17 @@
1
1
  export default {
2
- xAxis: ['2022-12-01', '2022-12-02', '2022-12-03', '2022-12-04', '2022-12-05', '2022-12-06', '2022-12-07', '2022-12-08', '2022-12-09', '2022-12-10', '2022-12-11', '2023-12-12', '2023-12-13', '2023-12-14'],
2
+ xAxis: ['2022-12-01', '2022-12-02', '2022-12-03', '2022-12-04', '2022-12-05', '2022-12-06', '2022-12-07', '2022-12-08', '2022-12-09', '2022-12-10', '2022-12-11', '2024-08-19', '2024-09-16', '2024-10-16'],
3
3
  series: [{
4
- names: ['付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功'],
5
- values: [26, 27, 43, 44, 40, 34, 33, 33, 34, 24, 30, 31, 31, 38],
6
- orderNum: 1
7
- }, {
8
- names: ['注册-发送手机验证码'],
9
- values: [11, 10, 7, 5, 13, 18, 14, 17, 11, 6, 10, 12, 15, 10],
10
- orderNum: 1
11
- }, {
12
- names: ['搜索商品'],
13
- values: [75, 68, 86, 80, 87, 71, 72, 81, 77, 74, 78, 76, 76, 79],
14
- orderNum: 2
15
- }, {
16
4
  names: ['pv'],
17
5
  values: [104, 89, 109, 103, 112, 93, 87, 101, 101, 97, 102, 110, 106, 98],
6
+ minValues: [null, null, null, null, null, null, null, null, null, null, null, 102, 0, 1, 2],
7
+ maxValues: [null, null, null, null, null, null, null, null, null, null, null, 666, 1111, 2222],
18
8
  orderNum: 3
19
9
  }, {
20
10
  names: ['申请退货2'],
21
11
  values: [5, 11, 14, 9, 8, 14, 9, 10, 12, 12, 14, 16, 12, 10],
12
+ minValues: [null, null, null, null, null, null, null, null, null, null, null, null, 44, 55, 66],
13
+ maxValues: [null, null, null, null, null, null, null, null, null, null, null, null, 888, 5555],
22
14
  orderNum: 4
23
- }, {
24
- names: ['搜索商品'],
25
- values: [75, 68, 86, 80, 87, 71, 72, 81, 77, 74, 78, 76, 76, 79],
26
- orderNum: 5
27
- }, {
28
- names: ['付款成功11付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功付款成功'],
29
- values: [26, 27, 43, 44, 40, 34, 33, 33, 34, 24, 30, 31, 31, 38],
30
- orderNum: 1
31
- }, {
32
- names: ['查看商品详情'],
33
- values: [122, 107, 132, 113, 133, 115, 106, 127, 132, 117, 119, 123, 119, 117],
34
- orderNum: 2
35
- }, {
36
- names: ['scroll'],
37
- values: [98, 96, 106, 109, 113, 105, 91, 111, 99, 99, 104, 108, 116, 92],
38
- orderNum: 3
39
- }, {
40
- names: ['click'],
41
- values: [108, 102, 111, 90, 111, 105, 91, 129, 117, 101, 109, 109, 105, 96],
42
- orderNum: 4
43
- }, {
44
- names: ['申请退货'],
45
- values: [5, 11, 14, 9, 8, 14, 9, 10, 12, 12, 14, 16, 12, 10],
46
- orderNum: 5
47
15
  }]
48
16
  };
49
17
  export var barData = {
@@ -146,7 +146,6 @@ export default (function () {
146
146
  htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(params.seriesName, "</div>\n </div> \n <span class=\"biz-chart-tooltip-value\">").concat(params.value, "</span>\n </div>"));
147
147
  return htmlArray.join('');
148
148
  };
149
- console.log('colorList', colorList);
150
149
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizChart, {
151
150
  showList: showList,
152
151
  data: data,
package/es/chart/index.js CHANGED
@@ -71,6 +71,16 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
71
71
  option.series.forEach(function (series, seriesIndex) {
72
72
  var dashedItem = addDashedSeries(series, index - 1);
73
73
  dashedItem.itemStyle.normal.color = dashedItem.lineStyle.normal.color = option.color[seriesIndex];
74
+ dashedItem.markArea = {
75
+ itemStyle: {
76
+ color: 'rgba(22, 93, 255, 0.08)'
77
+ },
78
+ data: [[{
79
+ xAxis: option.xAxis.data[index]
80
+ }, {
81
+ xAxis: option.xAxis.data[option.xAxis.data.length - 1]
82
+ }]]
83
+ };
74
84
  dashedSeries.push(dashedItem);
75
85
  });
76
86
  option.series = option.series.concat(dashedSeries);
@@ -65,4 +65,49 @@
65
65
  font-weight: 500;
66
66
  }
67
67
  }
68
+
69
+ .biz-chart-tooltip-item-new {
70
+ min-height: @height-sm;
71
+ margin-bottom: 4px;
72
+ padding: 0px @padding-xs;
73
+ font-size: @font-size-sm;
74
+ background: @white;
75
+ border-radius: @border-radius-small;
76
+ box-shadow: @box-shadow-small;
77
+ .biz-chart-tooltip-content {
78
+ display: flex;
79
+ align-items: center;
80
+ color: @text-color-secondary;
81
+
82
+ .biz-tooltip-marker {
83
+ width: 8px;
84
+ height: 8px;
85
+ margin-right: @margin-xs;
86
+ border-radius: 50%;
87
+ }
88
+ .biz-tooltip-order {
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ width: 12.8px;
93
+ height: 12.8px;
94
+ margin-right: @margin-xs;
95
+ color: #fff;
96
+ font-weight: 500;
97
+ font-size: 8.96px;
98
+ background: #457dff;
99
+ border-radius: 50%;
100
+ }
101
+ .biz-tooltip-name {
102
+ max-width: 300px;
103
+ white-space: pre-wrap;
104
+ word-wrap: break-word;
105
+ word-break: break-all;
106
+ }
107
+ }
108
+ &-value {
109
+ font-weight: 700;
110
+ // font-size: 14px;
111
+ }
112
+ }
68
113
  }
@@ -161,6 +161,7 @@ export var getChartOption = function getChartOption(chartType, data) {
161
161
  yAxis.minInterval = 1;
162
162
  }
163
163
  var series = [];
164
+ var seriesObject = {};
164
165
  if (chartType === 'bar') {
165
166
  seriesItem.barMaxWidth = 40;
166
167
  }
@@ -174,6 +175,9 @@ export var getChartOption = function getChartOption(chartType, data) {
174
175
  yAxisIndex: item.yAxisIndex
175
176
  } : {});
176
177
  });
178
+ series.map(function (item) {
179
+ seriesObject[item.name] = item;
180
+ });
177
181
  } else {
178
182
  series = [_objectSpread(_objectSpread(_objectSpread({
179
183
  name: seriesName || '',
@@ -189,6 +193,14 @@ export var getChartOption = function getChartOption(chartType, data) {
189
193
  tooltip.axisPointer = tooltip.axisPointer || {};
190
194
  tooltip.axisPointer.type = chartType === 'bar' || chartType === 'line_bar' || chartType === 'muit_y' ? 'shadow' : 'line';
191
195
  tooltip.formatter = function (params) {
196
+ if (Object.keys(seriesObject).length > 0) {
197
+ params.map(function (item) {
198
+ var _minValues = seriesObject[item.seriesName].minValues;
199
+ var _mixValues = seriesObject[item.seriesName].maxValues;
200
+ item.minValues = _minValues ? _minValues[item.dataIndex] : null;
201
+ item.maxValues = _mixValues ? _mixValues[item.dataIndex] : null;
202
+ });
203
+ }
192
204
  return tooltipFormatter ? tooltipFormatter(params) : tooltip.trigger === 'item' ? tooltipFormatterItemDefault(params, data.resultFormatMap, unit) : tooltipFormatterDefault(params, data.resultFormatMap, unit);
193
205
  };
194
206
  if (legendPosition === 'top') {
@@ -66,7 +66,9 @@ export var formatChartData = function formatChartData(data, showAll, showList, r
66
66
  } else {
67
67
  sData.push(_objectSpread(_objectSpread({
68
68
  name: showName,
69
- data: seriesItem.values
69
+ data: seriesItem.values,
70
+ minValues: seriesItem === null || seriesItem === void 0 ? void 0 : seriesItem.minValues,
71
+ maxValues: seriesItem === null || seriesItem === void 0 ? void 0 : seriesItem.maxValues
70
72
  }, seriesItem.stack ? {
71
73
  stack: seriesItem.stack
72
74
  } : {}), {}, {
@@ -20,16 +20,22 @@ var tooltipFormatterDefault = function tooltipFormatterDefault(params, resultFor
20
20
  return;
21
21
  }
22
22
  seriesMap[item.seriesName] = item.value;
23
- var lineLabel = item.value;
24
- if (item.seriesName.indexOf('CTR') > -1) {
25
- lineLabel += '%';
26
- } else if (resultFormatMap && resultFormatMap[item.seriesName] && /percent/.test(resultFormatMap[item.seriesName])) {
27
- lineLabel = util.toThousands(lineLabel) + '%';
28
- } else if (unit && unit === 'time') {
29
- lineLabel = util.timeFormat(lineLabel, 'hhhmmmsss', 1);
30
- } else {
31
- lineLabel = util.toThousands(lineLabel) + (unit || '');
32
- }
23
+ var unitHandle = function unitHandle(_value) {
24
+ var _data = _value;
25
+ if (item.seriesName.indexOf('CTR') > -1) {
26
+ _data += '%';
27
+ } else if (resultFormatMap && resultFormatMap[item.seriesName] && /percent/.test(resultFormatMap[item.seriesName])) {
28
+ _data = util.toThousands(_data) + '%';
29
+ } else if (unit && unit === 'time') {
30
+ _data = util.timeFormat(_data, 'hhhmmmsss', 1);
31
+ } else {
32
+ _data = util.toThousands(_data) + (unit || '');
33
+ }
34
+ return _data;
35
+ };
36
+ var lineLabel = unitHandle(item.value);
37
+ var minValues = item.minValues && unitHandle(item.minValues);
38
+ var maxValues = item.maxValues && unitHandle(item.maxValues);
33
39
  var name = item.seriesName.trim();
34
40
  if (item.seriesType === 'bar' && params.length === 1 && !name) {
35
41
  name = (item.data && item.data.label ? item.data.label : item.name).trim();
@@ -37,7 +43,11 @@ var tooltipFormatterDefault = function tooltipFormatterDefault(params, resultFor
37
43
  var nameArr = name.split('|:|');
38
44
  name = nameArr[0];
39
45
  var orderNum = nameArr[1];
40
- htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"".concat(orderNum ? 'biz-tooltip-order' : 'biz-tooltip-marker', "\" style=\"background:").concat(item.color, "\">").concat(orderNum || '', "</span>\n <div class=\"biz-tooltip-name\">").concat(name, "</div>\n </div> \n <span class=\"biz-chart-tooltip-value\">").concat(lineLabel, "</span>\n </div>"));
46
+ if (item.minValues === null && item.maxValues === null) {
47
+ htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"".concat(orderNum ? 'biz-tooltip-order' : 'biz-tooltip-marker', "\" style=\"background:").concat(item.color, "\">").concat(orderNum || '', "</span>\n <div class=\"biz-tooltip-name\">").concat(name, "</div>\n </div> \n <span class=\"biz-chart-tooltip-value\">").concat(lineLabel, "</span>\n </div>"));
48
+ } else {
49
+ htmlArray.push("<div class=\"biz-chart-tooltip-item-new\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"".concat(orderNum ? 'biz-tooltip-order' : 'biz-tooltip-marker', "\" style=\"background:").concat(item.color, "\">").concat(orderNum || '', "</span>\n <div class=\"biz-tooltip-name\">").concat(name, "</div>\n </div> \n <div>\n <div>\n <span>\u9884\u6D4B\u503C\uFF1A</span>\n <span class=\"biz-chart-tooltip-item-new-value\">").concat(lineLabel, "</span>\n </div>\n <div>\n <span>\u9884\u6D4B\u6700\u5927\u503C\uFF1A</span>\n <span class=\"biz-chart-tooltip-item-new-value\">").concat(maxValues, "</span>\n </div>\n <div>\n <span>\u9884\u6D4B\u6700\u5C0F\u503C\uFF1A</span>\n <span class=\"biz-chart-tooltip-item-new-value\">").concat(minValues, "</span>\n </div>\n </div>\n </div>"));
50
+ }
41
51
  });
42
52
  return htmlArray.join('');
43
53
  };
@@ -36,8 +36,7 @@ var CascaderOverlay = function CascaderOverlay(props) {
36
36
  labelFields = props.labelFields,
37
37
  keyFields = props.keyFields,
38
38
  valueFields = props.valueFields,
39
- childFields = props.childFields,
40
- isOpenLayer = props.isOpenLayer;
39
+ childFields = props.childFields;
41
40
  var timer = useRef(null);
42
41
  var _useState = useState(''),
43
42
  _useState2 = _slicedToArray(_useState, 2),
@@ -163,8 +162,7 @@ var CascaderOverlay = function CascaderOverlay(props) {
163
162
  labelGroup: currentSelect,
164
163
  pageNo: pageNo,
165
164
  pageSize: 20,
166
- labelName: highlightText,
167
- isOpenLayer: isOpenLayer || true
165
+ labelName: highlightText
168
166
  }
169
167
  }).then(function (res) {
170
168
  if ((res === null || res === void 0 ? void 0 : res.data) && res.data.results) {
@@ -174,11 +172,6 @@ var CascaderOverlay = function CascaderOverlay(props) {
174
172
  if (item.labelGroup === currentSelect) {
175
173
  item.children = pageNo === 1 ? _toConsumableArray(result) : item.children.concat(result);
176
174
  }
177
- if (!isOpenLayer) {
178
- item.children.forEach(function (element) {
179
- element.layers = [];
180
- });
181
- }
182
175
  return _objectSpread({}, item);
183
176
  });
184
177
  });
@@ -216,7 +209,7 @@ var CascaderOverlay = function CascaderOverlay(props) {
216
209
  }
217
210
  function onClickTag(data) {
218
211
  setCurrentTag(data);
219
- if ((data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.firstAndLastUpdate || (data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.fundingSource || (data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.eventPreference || (data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.sqlCreateTable || !isOpenLayer) {
212
+ if ((data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.firstAndLastUpdate || (data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.fundingSource || (data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.eventPreference || (data === null || data === void 0 ? void 0 : data.labelCreateType) === LabelCreateType.sqlCreateTable) {
220
213
  var newValue = [{
221
214
  id: groupMap[currentSelect].id,
222
215
  labelGroup: currentSelect
@@ -237,11 +230,7 @@ var CascaderOverlay = function CascaderOverlay(props) {
237
230
  });
238
231
  if (_index === -1) {
239
232
  if (currentValue.length >= 20) return;
240
- if (isOpenLayer) {
241
- props.onChange([].concat(_toConsumableArray(currentValue), [newValue]));
242
- } else {
243
- props.onChange([newValue]);
244
- }
233
+ props.onChange([].concat(_toConsumableArray(currentValue), [newValue]));
245
234
  } else {
246
235
  currentValue.splice(_index, 1);
247
236
  props.onChange(_toConsumableArray(currentValue));
@@ -280,7 +269,7 @@ var CascaderOverlay = function CascaderOverlay(props) {
280
269
  getTagsByGroup(Math.floor(groupMap[currentSelect].children.length / 20) + 1);
281
270
  },
282
271
  onClick: onClickTag
283
- }) : /*#__PURE__*/React.createElement("span", null, "\u6682\u65E0\u6570\u636E")), isOpenLayer && currentTag && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.firstAndLastUpdate && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.fundingSource && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.eventPreference && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.sqlCreateTable && /*#__PURE__*/React.createElement("div", {
272
+ }) : /*#__PURE__*/React.createElement("span", null, "\u6682\u65E0\u6570\u636E")), currentTag && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.firstAndLastUpdate && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.fundingSource && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.eventPreference && (currentTag === null || currentTag === void 0 ? void 0 : currentTag.labelCreateType) !== LabelCreateType.sqlCreateTable && /*#__PURE__*/React.createElement("div", {
284
273
  className: "".concat(classPrefix, "-overlay-selections")
285
274
  }, /*#__PURE__*/React.createElement(MultipleCheckPanel, {
286
275
  valueField: valueFields[2],
@@ -310,7 +299,6 @@ CascaderOverlay.defaultProps = {
310
299
  childFields: ['children', 'layers'],
311
300
  keyFields: ['labelGroup', 'id', 'layerLabelId'],
312
301
  labelFields: ['labelGroup', 'labelName', 'layerLabelName'],
313
- valueFields: ['labelGroup', 'id', 'layerLabelId'],
314
- isOpenLayer: true
302
+ valueFields: ['labelGroup', 'id', 'layerLabelId']
315
303
  };
316
304
  export default CascaderOverlay;
@@ -26,8 +26,7 @@ var UserTagsSelect = function UserTagsSelect(props) {
26
26
  labelFields = props.labelFields,
27
27
  childFields = props.childFields,
28
28
  keyFields = props.keyFields,
29
- valueFields = props.valueFields,
30
- isOpenLayer = props.isOpenLayer;
29
+ valueFields = props.valueFields;
31
30
  var _useState = useState([]),
32
31
  _useState2 = _slicedToArray(_useState, 2),
33
32
  currentValue = _useState2[0],
@@ -43,7 +42,7 @@ var UserTagsSelect = function UserTagsSelect(props) {
43
42
  var pre_text = pre[labelFields[labelFields.length - 2]];
44
43
  var last_text = last[labelFields[labelFields.length - 1]];
45
44
  var res = _objectSpread(_objectSpread({}, last), {}, {
46
- handleText: (pre === null || pre === void 0 ? void 0 : pre.labelCreateType) === 3 || (pre === null || pre === void 0 ? void 0 : pre.labelCreateType) === 6 || (pre === null || pre === void 0 ? void 0 : pre.labelCreateType) === LabelCreateType.sqlCreateTable || !isOpenLayer ? pre_text : "".concat(pre_text, "\uFF1A").concat(last_text)
45
+ handleText: (pre === null || pre === void 0 ? void 0 : pre.labelCreateType) === 3 || (pre === null || pre === void 0 ? void 0 : pre.labelCreateType) === 6 || (pre === null || pre === void 0 ? void 0 : pre.labelCreateType) === LabelCreateType.sqlCreateTable ? pre_text : "".concat(pre_text, "\uFF1A").concat(last_text)
47
46
  });
48
47
  return res;
49
48
  });
@@ -76,7 +75,6 @@ var UserTagsSelect = function UserTagsSelect(props) {
76
75
  keyFields: keyFields,
77
76
  labelFields: labelFields,
78
77
  data: data,
79
- isOpenLayer: isOpenLayer,
80
78
  onChange: onChange
81
79
  });
82
80
  }
@@ -107,7 +105,6 @@ var UserTagsSelect = function UserTagsSelect(props) {
107
105
  }))));
108
106
  };
109
107
  UserTagsSelect.defaultProps = {
110
- destroyPopupOnHide: false,
111
- isOpenLayer: true
108
+ destroyPopupOnHide: false
112
109
  };
113
110
  export default UserTagsSelect;
@@ -30,7 +30,6 @@ export declare namespace UserTagsSelectorTypes {
30
30
  defaultCurrent?: string[];
31
31
  onChange: Function;
32
32
  destroyPopupOnHide?: boolean;
33
- isOpenLayer?: boolean;
34
33
  }
35
34
  interface CascaderOverlayProps {
36
35
  className?: string;
@@ -41,7 +40,6 @@ export declare namespace UserTagsSelectorTypes {
41
40
  valueFields?: string[];
42
41
  currentValue: Value;
43
42
  onChange: (val: Value) => void;
44
- isOpenLayer?: boolean;
45
43
  }
46
44
  interface Groups {
47
45
  data: any[];
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
1
  {
2
- "name": "@zgfe/business-lib",
3
- "version": "1.2.54-plat.0",
4
- "module": "es/index.js",
5
- "typings": "es/index.d.ts",
6
- "files": [
7
- "es",
8
- "config.js"
2
+ "name": "@zgfe/business-lib",
3
+ "version": "1.2.55-heyh.0",
4
+ "module": "es/index.js",
5
+ "typings": "es/index.d.ts",
6
+ "files": [
7
+ "es",
8
+ "config.js"
9
+ ],
10
+ "scripts": {
11
+ "build": "father-build",
12
+ "deploy": "npm run docs:build && npm run docs:deploy",
13
+ "docs:build": "dumi build",
14
+ "docs:deploy": "gh-pages -d docs-dist",
15
+ "prepublishOnly": "npm run build",
16
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
17
+ "pub": "lerna publish",
18
+ "start": "dumi dev",
19
+ "test": "umi-test",
20
+ "test:coverage": "umi-test --coverage"
21
+ },
22
+ "lint-staged": {
23
+ "*.{js,jsx,less,md,json}": [
24
+ "prettier --write"
9
25
  ],
10
- "scripts": {
11
- "start": "dumi dev",
12
- "docs:build": "dumi build",
13
- "docs:deploy": "gh-pages -d docs-dist",
14
- "build": "father-build",
15
- "deploy": "npm run docs:build && npm run docs:deploy",
16
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
17
- "test": "umi-test",
18
- "test:coverage": "umi-test --coverage",
19
- "prepublishOnly": "npm run build",
20
- "pub": "lerna publish"
21
- },
22
- "lint-staged": {
23
- "*.{js,jsx,less,md,json}": [
24
- "prettier --write"
25
- ],
26
- "*.ts?(x)": [
27
- "prettier --parser=typescript --write"
28
- ]
29
- },
30
- "dependencies": {
31
- "@types/qs": "^6.9.7",
32
- "axios": "^0.26.1",
33
- "babel-plugin-import": "^1.13.3",
34
- "echarts": "^5.3.2",
35
- "echarts-for-react": "^3.0.2",
36
- "lerna": "^4.0.0",
37
- "rc-virtual-list": "^3.4.8",
38
- "react-infinite-scroll-component": "^6.1.0",
39
- "umi-request": "^1.4.0"
40
- },
41
- "devDependencies": {
42
- "@testing-library/jest-dom": "^5.15.1",
43
- "@testing-library/react": "^12.1.2",
44
- "@types/jest": "^27.0.3",
45
- "@types/lodash": "^4.14.182",
46
- "@umijs/fabric": "^2.8.1",
47
- "@umijs/test": "^3.0.5",
48
- "antd": "4.24.16",
49
- "dumi": "^1.1.0",
50
- "father-build": "^1.17.2",
51
- "gh-pages": "^3.0.0",
52
- "lint-staged": "^10.0.7",
53
- "lodash": "^4.17.21",
54
- "prettier": "^2.2.1",
55
- "react": "^16.12.0 || ^17.0.0",
56
- "yorkie": "^2.0.0"
57
- },
58
- "gitHead": "61f2895d3451a2a2d81b55dffcdb66629d55c482",
59
- "gitHooks": {
60
- "pre-commit": "lint-staged"
61
- }
26
+ "*.ts?(x)": [
27
+ "prettier --parser=typescript --write"
28
+ ]
29
+ },
30
+ "dependencies": {
31
+ "@types/qs": "^6.9.7",
32
+ "axios": "^0.26.1",
33
+ "babel-plugin-import": "^1.13.3",
34
+ "echarts": "^5.3.2",
35
+ "echarts-for-react": "^3.0.2",
36
+ "lerna": "^4.0.0",
37
+ "rc-virtual-list": "^3.4.8",
38
+ "react-infinite-scroll-component": "^6.1.0",
39
+ "umi-request": "^1.4.0"
40
+ },
41
+ "devDependencies": {
42
+ "@testing-library/jest-dom": "^5.15.1",
43
+ "@testing-library/react": "^12.1.2",
44
+ "@types/jest": "^27.0.3",
45
+ "@types/lodash": "^4.14.182",
46
+ "@umijs/fabric": "^2.8.1",
47
+ "@umijs/test": "^3.0.5",
48
+ "antd": "4.24.16",
49
+ "dumi": "^1.1.0",
50
+ "father-build": "^1.17.2",
51
+ "gh-pages": "^3.0.0",
52
+ "lint-staged": "^10.0.7",
53
+ "lodash": "^4.17.21",
54
+ "prettier": "^2.2.1",
55
+ "react": "^16.12.0 || ^17.0.0",
56
+ "yorkie": "^2.0.0"
57
+ },
58
+ "gitHead": "29e5dfa09ea08105d1395b17f8a28178557fbb4d",
59
+ "gitHooks": {
60
+ "pre-commit": "lint-staged"
61
+ }
62
62
  }