@zgfe/modules-event 1.0.5-heyh.2 → 1.0.5-heyh.4
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/modules/chart/index.js +0 -25
- package/package.json +2 -2
|
@@ -13,11 +13,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
13
13
|
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import { Tooltip, Empty } from 'antd';
|
|
15
15
|
import { BizChart, BizGlobalDataContext, ajax, BizLoading } from '@zgfe/business-lib';
|
|
16
|
-
import { EventTable } from '../../components';
|
|
17
16
|
import { judgeIsCity } from '../content/utils';
|
|
18
17
|
import { getValue, getMapChartData } from '../../modules/content/utils';
|
|
19
18
|
import { getDefaultShow, getShowColor, getUserGroupsCompareData, getSortData, getChartDataEventAliasName } from '../../utils/formData';
|
|
20
|
-
import _ from 'lodash';
|
|
21
19
|
import moment from 'moment';
|
|
22
20
|
import { Apis, chartColors } from '../../constants';
|
|
23
21
|
var classPrefix = 'event-mi-table';
|
|
@@ -109,19 +107,6 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
109
107
|
setLoading(false);
|
|
110
108
|
});
|
|
111
109
|
};
|
|
112
|
-
var onChangeShowByName = function onChangeShowByName(nameGroup) {
|
|
113
|
-
var list = _.cloneDeep(showList);
|
|
114
|
-
var index = list === null || list === void 0 ? void 0 : list.indexOf(nameGroup);
|
|
115
|
-
if (index < 0) {
|
|
116
|
-
list.push(nameGroup);
|
|
117
|
-
} else {
|
|
118
|
-
list.splice(index, 1);
|
|
119
|
-
}
|
|
120
|
-
if (props.onChangeShow) props.onChangeShow(list);
|
|
121
|
-
};
|
|
122
|
-
var onChangeShow = function onChangeShow(names) {
|
|
123
|
-
if (props.onChangeShow) props.onChangeShow(names);
|
|
124
|
-
};
|
|
125
110
|
if (loading) {
|
|
126
111
|
return /*#__PURE__*/React.createElement(BizLoading, {
|
|
127
112
|
className: "".concat(classPrefix, "-loading")
|
|
@@ -168,16 +153,6 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
168
153
|
case 'pie':
|
|
169
154
|
case 'map':
|
|
170
155
|
return chartBox();
|
|
171
|
-
case 'grid':
|
|
172
|
-
return /*#__PURE__*/React.createElement(EventTable, {
|
|
173
|
-
dataSource: dataSource,
|
|
174
|
-
sourcePanel: !props.dataSource,
|
|
175
|
-
searchData: params,
|
|
176
|
-
showList: showList,
|
|
177
|
-
changeShow: onChangeShow,
|
|
178
|
-
changeShowByName: onChangeShowByName,
|
|
179
|
-
onSelectEvent: props === null || props === void 0 ? void 0 : props.onSelectEvent
|
|
180
|
-
});
|
|
181
156
|
default:
|
|
182
157
|
return /*#__PURE__*/React.createElement("div", null, "\u6682\u4E0D\u652F\u6301\u8BE5\u56FE\u8868\u7C7B\u578B");
|
|
183
158
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "1.0.5-heyh.
|
|
3
|
+
"version": "1.0.5-heyh.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react": "^16.12.0 || ^17.0.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "82aff34b6905521e46ea331245b23264f0f64dcc",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|