@zgfe/modules-interval 1.0.23-zhongyuan.1 → 1.0.23-zhongyuan.10

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.
Files changed (31) hide show
  1. package/dist/esm/components/eventFilter/index.js +6 -5
  2. package/dist/esm/components/renderContent/styles/index.css +32 -0
  3. package/dist/esm/components/renderContent/styles/index.less +37 -36
  4. package/dist/esm/components/searchPanel/index.js +6 -1
  5. package/dist/esm/components/table/index.js +3 -2
  6. package/dist/esm/constants/code.d.ts +13 -0
  7. package/dist/esm/constants/code.js +13 -0
  8. package/dist/esm/modules/chart/customTooltip.js +5 -3
  9. package/dist/esm/modules/chart/customTooltip1.d.ts +7 -0
  10. package/dist/esm/modules/chart/customTooltip1.js +46 -0
  11. package/dist/esm/modules/chart/index.css +52 -0
  12. package/dist/esm/modules/chart/index.js +19 -8
  13. package/dist/esm/modules/chart/index.less +58 -58
  14. package/dist/esm/modules/chart/intervalChart copy.d.ts +4 -0
  15. package/dist/esm/modules/chart/intervalChart copy.js +299 -0
  16. package/dist/esm/modules/chart/intervalChart.js +321 -35
  17. package/dist/esm/modules/chart/types.d.ts +5 -0
  18. package/dist/esm/modules/content/index.js +50 -20
  19. package/dist/esm/modules/content/utils.d.ts +0 -1
  20. package/dist/esm/modules/content/utils.js +3 -4
  21. package/dist/esm/modules/home/demo/create.js +5 -3
  22. package/dist/esm/modules/home/demo/edit.js +132 -34
  23. package/dist/esm/modules/home/demo/index.js +1 -1
  24. package/dist/esm/modules/home/demo/scene.js +1 -1
  25. package/dist/esm/modules/home/index.js +8 -1
  26. package/dist/esm/modules/home/types.d.ts +0 -1
  27. package/dist/esm/modules/topPanel/index.js +39 -29
  28. package/dist/esm/modules/topPanel/styles/index.less +219 -219
  29. package/dist/esm/modules/topPanel/types.d.ts +1 -0
  30. package/dist/esm/utils/formData.js +31 -28
  31. package/package.json +3 -3
@@ -18,7 +18,8 @@ import _ from 'lodash';
18
18
  var classPrefix = 'interval-box';
19
19
  var EventFilter = function EventFilter(props) {
20
20
  var _useContext = useContext(BizGlobalDataContext),
21
- eventIdMap = _useContext.eventIdMap;
21
+ eventIdMap = _useContext.eventIdMap,
22
+ envs = _useContext.envs;
22
23
  // 筛选条件个数
23
24
  var _useState = useState(0),
24
25
  _useState2 = _slicedToArray(_useState, 2),
@@ -95,8 +96,8 @@ var EventFilter = function EventFilter(props) {
95
96
  return;
96
97
  }
97
98
  // 最多可添加10条属性筛选
98
- if (count >= 10) {
99
- message.error('最多可添加 10 条属性筛选');
99
+ if (count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10)) {
100
+ message.error("\u6700\u591A\u53EF\u6DFB\u52A0 ".concat((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10, " \u6761\u5C5E\u6027\u7B5B\u9009"));
100
101
  return;
101
102
  }
102
103
  setIsAdd(true);
@@ -169,9 +170,9 @@ var EventFilter = function EventFilter(props) {
169
170
  placeholder: "\u8BF7\u9009\u62E9\u4E8B\u4EF6"
170
171
  }), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
171
172
  placement: "top",
172
- title: !eventOverview ? '请先选择目标事件' : count < 10 ? '添加属性筛选' : '最多可添加 10 条属性筛选'
173
+ title: !eventOverview ? '请先选择目标事件' : count < ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10) ? '添加属性筛选' : "\u6700\u591A\u53EF\u6DFB\u52A0 ".concat((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10, " \u6761\u5C5E\u6027\u7B5B\u9009")
173
174
  }, /*#__PURE__*/React.createElement(IconFont, {
174
- className: "".concat(count >= 10 || event.id === -1 || !eventOverview ? 'disable' : ''),
175
+ className: "".concat(count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10) || event.id === -1 || !eventOverview ? 'disable' : ''),
175
176
  type: "shaixuan",
176
177
  onClick: function onClick() {
177
178
  return onAdd();
@@ -0,0 +1,32 @@
1
+ .render-content-interval-chart-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ min-height: 300px;
7
+ }
8
+ .render-content-interval-chart-container .echarts-for-react {
9
+ width: 100%;
10
+ background: #fff;
11
+ border: 1px solid var(--unnamed, #ecedf0);
12
+ border-radius: 8px;
13
+ }
14
+ .render-content-interval-MiNone {
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ width: 100%;
19
+ height: 368px;
20
+ padding: 24px 16px;
21
+ border: 1px solid #ecedf0;
22
+ border-radius: 8px;
23
+ }
24
+ .render-content-interval-spin-container {
25
+ display: flex !important;
26
+ align-items: center;
27
+ justify-content: center;
28
+ min-height: 300px;
29
+ }
30
+ .render-content-interval-spin-container .biz-loading-wrapper {
31
+ width: 100%;
32
+ }
@@ -1,36 +1,37 @@
1
- .render-content-interval {
2
- &-chart-container {
3
- display: flex;
4
- flex-direction: column;
5
- align-items: center;
6
- justify-content: center;
7
-
8
- .echarts-for-react {
9
- width: 100%;
10
- background: #fff;
11
- border: 1px solid var(--unnamed, #ecedf0);
12
- border-radius: 8px;
13
- }
14
- }
15
-
16
- &-MiNone {
17
- display: flex;
18
- align-items: center;
19
- justify-content: center;
20
- width: 100%;
21
- height: 368px;
22
- padding: 24px 16px;
23
- border: 1px solid #ecedf0;
24
- border-radius: 8px;
25
- }
26
-
27
- &-spin-container {
28
- display: flex !important;
29
- align-items: center;
30
- justify-content: center;
31
- min-height: 300px;
32
- .biz-loading-wrapper {
33
- width: 100%;
34
- }
35
- }
36
- }
1
+ .render-content-interval {
2
+ &-chart-container {
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ justify-content: center;
7
+ min-height: 300px;
8
+
9
+ .echarts-for-react {
10
+ width: 100%;
11
+ background: #fff;
12
+ border: 1px solid var(--unnamed, #ecedf0);
13
+ border-radius: 8px;
14
+ }
15
+ }
16
+
17
+ &-MiNone {
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ width: 100%;
22
+ height: 368px;
23
+ padding: 24px 16px;
24
+ border: 1px solid #ecedf0;
25
+ border-radius: 8px;
26
+ }
27
+
28
+ &-spin-container {
29
+ display: flex !important;
30
+ align-items: center;
31
+ justify-content: center;
32
+ min-height: 300px;
33
+ .biz-loading-wrapper {
34
+ width: 100%;
35
+ }
36
+ }
37
+ }
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
11
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
- import { BizSelect, IconFont, BizDatePickerV2 } from '@zgfe/business-lib';
13
+ import { BizSelect, IconFont, BizDatePickerV2, BizGlobalDataContext } from '@zgfe/business-lib';
14
14
  import { DatePickerTypes } from '@zgfe/business-lib/es/datePickerV2/types';
15
15
  import React, { useContext, useEffect, useState } from 'react';
16
16
  import { chartTypeOptions, getInitDate } from "../../constants";
@@ -24,6 +24,8 @@ var SearchPanel = function SearchPanel(props) {
24
24
  includeToday = _useContext.includeToday,
25
25
  searchData = _useContext.searchData,
26
26
  refreshLoading = _useContext.refreshLoading;
27
+ var _useContext2 = useContext(BizGlobalDataContext),
28
+ envs = _useContext2.envs;
27
29
  // 当前时间段
28
30
  var _useState = useState(props.time || getInitDate(includeToday)),
29
31
  _useState2 = _slicedToArray(_useState, 2),
@@ -108,6 +110,9 @@ var SearchPanel = function SearchPanel(props) {
108
110
  dateTypeList: [DatePickerTypes.Unit.day, DatePickerTypes.Unit.week, DatePickerTypes.Unit.month, DatePickerTypes.Unit.custom],
109
111
  value: time,
110
112
  includeToday: true,
113
+ selectRange: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 36,
114
+ timeRangeOpen: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 36,
115
+ selectRangeUnit: envs && envs.timeRangeOpen ? 'months' : 'days',
111
116
  onChange: onChangeTime
112
117
  }), /*#__PURE__*/React.createElement(BizSelect, {
113
118
  multiple: true,
@@ -35,7 +35,8 @@ var EventTable = function EventTable(props) {
35
35
  eventGroupList = _useContext$eventGrou === void 0 ? [] : _useContext$eventGrou,
36
36
  eventEnvList = _useContext.eventEnvList,
37
37
  userPropList = _useContext.userPropList,
38
- authority = _useContext.authority;
38
+ authority = _useContext.authority,
39
+ showProdDownload = _useContext.showProdDownload;
39
40
  var _useContext2 = useContext(IntervalContext),
40
41
  panelName = _useContext2.panelName,
41
42
  onUserDrill = _useContext2.onUserDrill;
@@ -107,7 +108,7 @@ var EventTable = function EventTable(props) {
107
108
  className: classPrefix
108
109
  }, /*#__PURE__*/React.createElement("div", {
109
110
  className: "".concat(classPrefix, "-table-header")
110
- }, /*#__PURE__*/React.createElement("span", null, "\u6307\u6807\u8BE6\u60C5"), authority[100059] && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
111
+ }, /*#__PURE__*/React.createElement("span", null, "\u6307\u6807\u8BE6\u60C5"), authority[100059] && showProdDownload && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
111
112
  onClick: download
112
113
  }, /*#__PURE__*/React.createElement(IconFont, {
113
114
  type: "xiazai1"
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @description 异常状态码
3
+ */
4
+ export declare const ERROR_RESPONESE_CODE: {
5
+ /**
6
+ * @description 刷新失败
7
+ */
8
+ REFRESH_FAIL: string;
9
+ /**
10
+ * @description 用户群或标签查询异常
11
+ */
12
+ EXCEPTION: string;
13
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @description 异常状态码
3
+ */
4
+ export var ERROR_RESPONESE_CODE = {
5
+ /**
6
+ * @description 刷新失败
7
+ */
8
+ REFRESH_FAIL: '100080',
9
+ /**
10
+ * @description 用户群或标签查询异常
11
+ */
12
+ EXCEPTION: '100081'
13
+ };
@@ -3,6 +3,8 @@ import "./index.less";
3
3
  var CustomTooltip = function CustomTooltip(_ref) {
4
4
  var payload = _ref.payload,
5
5
  series = _ref.series;
6
+ console.log(payload, series, 'payload, series');
7
+
6
8
  // 初始化,判断showList是否有值,如果没值,取结果的前10条
7
9
  useEffect(function () {}, []);
8
10
  function convertToHMS(seconds) {
@@ -13,14 +15,14 @@ var CustomTooltip = function CustomTooltip(_ref) {
13
15
  }
14
16
  // 根据payload中的数据定义弹窗内容
15
17
  var marker = payload === null || payload === void 0 ? void 0 : payload.marker;
16
- var value = payload === null || payload === void 0 ? void 0 : payload.value;
18
+ var value = payload === null || payload === void 0 ? void 0 : payload.data;
17
19
  return /*#__PURE__*/React.createElement("div", {
18
20
  className: "custom-tooltip-chart"
19
21
  }, /*#__PURE__*/React.createElement("div", {
20
22
  className: "custom-tooltip-name"
21
23
  }, payload.name, " "), /*#__PURE__*/React.createElement("div", {
22
24
  className: "custom-tooltip-div"
23
- }, (series === null || series === void 0 ? void 0 : series.names[0]) && /*#__PURE__*/React.createElement("div", {
25
+ }, payload.seriesName && /*#__PURE__*/React.createElement("div", {
24
26
  className: "tooltip-marker"
25
27
  }, /*#__PURE__*/React.createElement("div", {
26
28
  dangerouslySetInnerHTML: {
@@ -28,7 +30,7 @@ var CustomTooltip = function CustomTooltip(_ref) {
28
30
  }
29
31
  }), /*#__PURE__*/React.createElement("div", {
30
32
  className: "tooltip-span"
31
- }, series.names[0])), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
33
+ }, payload.seriesName)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
32
34
  className: "tooltip-span"
33
35
  }, "\u6700\u5927\u503C\uFF1A"), /*#__PURE__*/React.createElement("div", null, convertToHMS(value[5]))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
34
36
  className: "tooltip-span"
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const CustomTooltip: React.FC<{
4
+ payload: any[];
5
+ series: any[];
6
+ }>;
7
+ export default CustomTooltip;
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import "./index.less";
3
+ var CustomTooltip = function CustomTooltip(_ref) {
4
+ var payload = _ref.payload,
5
+ series = _ref.series;
6
+ // 初始化,判断showList是否有值,如果没值,取结果的前10条
7
+ function convertToHMS(seconds) {
8
+ var hours = Math.floor(seconds / 3600);
9
+ var minutes = Math.floor(seconds % 3600 / 60);
10
+ var remainingSeconds = seconds % 60;
11
+ return ('00' + hours).slice(-2) + ':' + ('00' + minutes).slice(-2) + ':' + ('00' + remainingSeconds).slice(-2);
12
+ }
13
+ // 根据payload中的数据定义弹窗内容
14
+ // const marker = payload?.marker;
15
+
16
+ // const value = payload?.value;
17
+ return /*#__PURE__*/React.createElement(React.Fragment, null, payload.map(function (o, index) {
18
+ return /*#__PURE__*/React.createElement("div", {
19
+ className: "custom-tooltip-chart",
20
+ key: index
21
+ }, /*#__PURE__*/React.createElement("div", {
22
+ className: "custom-tooltip-name"
23
+ }, o.name, " "), /*#__PURE__*/React.createElement("div", {
24
+ className: "custom-tooltip-div"
25
+ }, o.seriesName && /*#__PURE__*/React.createElement("div", {
26
+ className: "tooltip-marker"
27
+ }, /*#__PURE__*/React.createElement("div", {
28
+ dangerouslySetInnerHTML: {
29
+ __html: o === null || o === void 0 ? void 0 : o.marker
30
+ }
31
+ }), /*#__PURE__*/React.createElement("div", {
32
+ className: "tooltip-span"
33
+ }, o.seriesName)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
34
+ className: "tooltip-span"
35
+ }, "\u6700\u5927\u503C\uFF1A"), /*#__PURE__*/React.createElement("div", null, convertToHMS(o.value[5]))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
36
+ className: "tooltip-span"
37
+ }, "\u4E0A\u56DB\u5206\u4F4D\uFF1A"), convertToHMS(o.value[2])), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
38
+ className: "tooltip-span"
39
+ }, "\u4E2D\u4F4D\u6570\uFF1A"), convertToHMS(o.value[3])), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
40
+ className: "tooltip-span"
41
+ }, "\u4E0B\u56DB\u5206\u4F4D\uFF1A"), convertToHMS(o.value[4])), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
42
+ className: "tooltip-span"
43
+ }, "\u6700\u5C0F\u503C\uFF1A"), convertToHMS(o.value[1]))));
44
+ }));
45
+ };
46
+ export default CustomTooltip;
@@ -0,0 +1,52 @@
1
+ .custom-tooltip-chart {
2
+ display: inline-block;
3
+ flex-direction: column;
4
+ flex-shrink: 0;
5
+ gap: 4px;
6
+ align-items: flex-start;
7
+ width: 146px;
8
+ height: 100%;
9
+ padding: 8px;
10
+ color: var(--io-n, #021429);
11
+ font-weight: 500;
12
+ font-size: 12px;
13
+ font-style: normal;
14
+ border-radius: 10px;
15
+ box-shadow: 0px 4px 10px 0px #0000001a;
16
+ }
17
+ .custom-tooltip-chart .custom-tooltip-name {
18
+ color: var(--io-n, #021429);
19
+ font-weight: 500;
20
+ font-size: 12px;
21
+ font-family: PingFang SC;
22
+ font-style: normal;
23
+ line-height: normal;
24
+ }
25
+ .custom-tooltip-chart .custom-tooltip-div {
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: 6px;
29
+ width: 100%;
30
+ height: 100%;
31
+ padding: 0px 8px;
32
+ background: #fff;
33
+ border-radius: 4px;
34
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04);
35
+ }
36
+ .custom-tooltip-chart .custom-tooltip-div .tooltip-span {
37
+ display: block;
38
+ color: var(--3, #5f6085);
39
+ font-weight: 400;
40
+ font-size: 12px;
41
+ font-family: PingFang SC;
42
+ font-style: normal;
43
+ line-height: normal;
44
+ }
45
+ .custom-tooltip-chart .custom-tooltip-div > div {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: space-between;
49
+ }
50
+ .custom-tooltip-chart .custom-tooltip-div .tooltip-marker {
51
+ justify-content: flex-start;
52
+ }
@@ -11,15 +11,18 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11
11
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { useContext, useEffect, useState } from 'react';
14
- import { BizEmpty, BizGlobalDataContext, BizLoading, ajax } from '@zgfe/business-lib';
14
+ import { BizEmpty, BizGlobalDataContext, ajax } from '@zgfe/business-lib';
15
15
  import { EventTable, MiNone } from "../../components";
16
16
  import { extractNames, getDefaultShow } from "../../utils/formData";
17
17
  import { Apis } from "../../constants";
18
18
  import IntervalChart from "./intervalChart";
19
19
  import { searchDataParams } from "../content/utils";
20
+ import { ERROR_RESPONESE_CODE } from "../../constants/code";
21
+ import { Spin } from 'antd';
20
22
  var IntervalEventChart = function IntervalEventChart(props) {
21
23
  var _dataSource$appData2;
22
- var params = props.params;
24
+ var params = props.params,
25
+ onChangeException = props.onChangeException;
23
26
  // 显示内容
24
27
  var _useState = useState(),
25
28
  _useState2 = _slicedToArray(_useState, 2),
@@ -49,6 +52,7 @@ var IntervalEventChart = function IntervalEventChart(props) {
49
52
  // 初始化,判断showList是否有值,如果没值,取结果的前10条
50
53
  useEffect(function () {
51
54
  var _dataSource$appData, _dataSource$appData$s;
55
+ var dataSource = props.dataSource;
52
56
  if ((dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$appData = dataSource.appData) === null || _dataSource$appData === void 0 ? void 0 : (_dataSource$appData$s = _dataSource$appData.series) === null || _dataSource$appData$s === void 0 ? void 0 : _dataSource$appData$s.length) > 0) {
53
57
  var _extractNames;
54
58
  var arr = params !== null && params !== void 0 && params.displaySetup ? params === null || params === void 0 ? void 0 : params.displaySetup : (_extractNames = extractNames(dataSource)) === null || _extractNames === void 0 ? void 0 : _extractNames.splice(0, 4);
@@ -56,7 +60,8 @@ var IntervalEventChart = function IntervalEventChart(props) {
56
60
  setShowList(app);
57
61
  setDataSourceList(arr);
58
62
  }
59
- }, [params === null || params === void 0 ? void 0 : params.displaySetup, dataSource]);
63
+ setDataSource(dataSource);
64
+ }, [params === null || params === void 0 ? void 0 : params.displaySetup, props.dataSource]);
60
65
  var fetchResult = function fetchResult() {
61
66
  var _obj$start, _obj$end, _params$start, _params$end;
62
67
  var obj = searchDataParams(params);
@@ -66,12 +71,17 @@ var IntervalEventChart = function IntervalEventChart(props) {
66
71
  method: 'post',
67
72
  data: _objectSpread(_objectSpread({
68
73
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
69
- }, params), obj)
74
+ }, params), obj),
75
+ intercept: false
70
76
  }).then(function (res) {
77
+ setLoading(false);
71
78
  if (!res) {
72
79
  return;
73
80
  }
74
- setLoading(false);
81
+ if (res.code == ERROR_RESPONESE_CODE.EXCEPTION) {
82
+ onChangeException === null || onChangeException === void 0 ? void 0 : onChangeException();
83
+ return;
84
+ }
75
85
  setDataSource(res.data);
76
86
  }).catch(function () {
77
87
  setLoading(false);
@@ -84,9 +94,10 @@ var IntervalEventChart = function IntervalEventChart(props) {
84
94
  if (props.onChangeShow) props.onChangeShow(names);
85
95
  };
86
96
  if (loading) {
87
- return /*#__PURE__*/React.createElement(BizLoading, {
88
- className: "mi-common-interval-content"
89
- }, /*#__PURE__*/React.createElement("div", null));
97
+ return /*#__PURE__*/React.createElement(Spin, {
98
+ tip: "",
99
+ size: "default"
100
+ }, "\u6570\u636E\u6B63\u5728\u52AA\u529B\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u7B49~");
90
101
  }
91
102
  if (dataSource !== null && dataSource !== void 0 && dataSource.appData.delEvent) {
92
103
  return /*#__PURE__*/React.createElement("div", {
@@ -1,58 +1,58 @@
1
- .custom-tooltip-chart {
2
- display: flex;
3
- flex-direction: column;
4
- flex-shrink: 0;
5
- gap: 4px;
6
- align-items: flex-start;
7
- width: 146px;
8
- height: 100%;
9
- padding: 8px;
10
- color: var(--io-n, #021429);
11
- font-weight: 500;
12
- font-size: 12px;
13
- font-style: normal;
14
- // background: rgba(250, 251, 253, 0.8);
15
- border-radius: 10px;
16
- box-shadow: 0px 4px 10px 0px #0000001a;
17
-
18
- .custom-tooltip-name {
19
- color: var(--io-n, #021429);
20
- font-weight: 500;
21
- font-size: 12px;
22
- font-family: PingFang SC;
23
- font-style: normal;
24
- line-height: normal;
25
- }
26
-
27
- .custom-tooltip-div {
28
- display: flex;
29
- flex-direction: column;
30
- gap: 6px;
31
- width: 100%;
32
- height: 100%;
33
- padding: 0px 8px;
34
- background: #fff;
35
- border-radius: 4px;
36
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04);
37
-
38
- .tooltip-span {
39
- display: block;
40
- color: var(--3, #5f6085);
41
- font-weight: 400;
42
- font-size: 12px;
43
- font-family: PingFang SC;
44
- font-style: normal;
45
- line-height: normal;
46
- }
47
-
48
- > div {
49
- display: flex;
50
- align-items: center;
51
- justify-content: space-between;
52
- }
53
-
54
- .tooltip-marker {
55
- justify-content: flex-start;
56
- }
57
- }
58
- }
1
+ .custom-tooltip-chart {
2
+ display: inline-block;
3
+ flex-direction: column;
4
+ flex-shrink: 0;
5
+ gap: 4px;
6
+ align-items: flex-start;
7
+ width: 146px;
8
+ height: 100%;
9
+ padding: 8px;
10
+ color: var(--io-n, #021429);
11
+ font-weight: 500;
12
+ font-size: 12px;
13
+ font-style: normal;
14
+ // background: rgba(250, 251, 253, 0.8);
15
+ border-radius: 10px;
16
+ box-shadow: 0px 4px 10px 0px #0000001a;
17
+
18
+ .custom-tooltip-name {
19
+ color: var(--io-n, #021429);
20
+ font-weight: 500;
21
+ font-size: 12px;
22
+ font-family: PingFang SC;
23
+ font-style: normal;
24
+ line-height: normal;
25
+ }
26
+
27
+ .custom-tooltip-div {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 6px;
31
+ width: 100%;
32
+ height: 100%;
33
+ padding: 0px 8px;
34
+ background: #fff;
35
+ border-radius: 4px;
36
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04);
37
+
38
+ .tooltip-span {
39
+ display: block;
40
+ color: var(--3, #5f6085);
41
+ font-weight: 400;
42
+ font-size: 12px;
43
+ font-family: PingFang SC;
44
+ font-style: normal;
45
+ line-height: normal;
46
+ }
47
+
48
+ > div {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: space-between;
52
+ }
53
+
54
+ .tooltip-marker {
55
+ justify-content: flex-start;
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { eventChartProps } from './types';
3
+ declare const IntervalChart: React.FC<eventChartProps.Props>;
4
+ export default IntervalChart;