@zgfe/modules-dm 1.0.42-alpha.9 → 1.0.56-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 (117) hide show
  1. package/es/components/demo.js +1 -1
  2. package/es/constants/api.d.ts +37 -0
  3. package/es/constants/api.js +62 -1
  4. package/es/index.d.ts +3 -1
  5. package/es/index.js +3 -1
  6. package/es/modules/CutsModal.d.ts +100 -0
  7. package/es/modules/CutsModal.js +52 -0
  8. package/es/modules/dataManage/collectionAttributeList.d.ts +3 -0
  9. package/es/modules/dataManage/collectionAttributeList.js +524 -80
  10. package/es/modules/dataManage/collectionEventList.d.ts +6 -0
  11. package/es/modules/dataManage/collectionEventList.js +482 -62
  12. package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
  13. package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
  14. package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
  15. package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
  16. package/es/modules/dataManage/components/createVirtualDrawer.js +19 -19
  17. package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
  18. package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
  19. package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
  20. package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
  21. package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
  22. package/es/modules/dataManage/components/creditPop/index.d.ts +6 -0
  23. package/es/modules/dataManage/components/creditPop/index.js +89 -0
  24. package/es/modules/dataManage/components/creditPop/index.less +121 -0
  25. package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
  26. package/es/modules/dataManage/components/deleteConfirm.js +36 -0
  27. package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
  28. package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
  29. package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
  30. package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
  31. package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
  32. package/es/modules/dataManage/components/depositPop/index.d.ts +6 -0
  33. package/es/modules/dataManage/components/depositPop/index.js +89 -0
  34. package/es/modules/dataManage/components/depositPop/index.less +115 -0
  35. package/es/modules/dataManage/components/developModal/index.css +36 -0
  36. package/es/modules/dataManage/components/developModal/index.d.ts +6 -0
  37. package/es/modules/dataManage/components/developModal/index.js +224 -0
  38. package/es/modules/dataManage/components/developModal/index.less +36 -0
  39. package/es/modules/dataManage/components/editTxt/index.d.ts +3 -0
  40. package/es/modules/dataManage/components/editTxt/index.js +123 -0
  41. package/es/modules/dataManage/components/editTxt/index.less +44 -0
  42. package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
  43. package/es/modules/dataManage/components/editTxt/types.js +1 -0
  44. package/es/modules/dataManage/components/eventFilter/index.js +13 -13
  45. package/es/modules/dataManage/components/eventFilter/styles/index.less +72 -72
  46. package/es/modules/dataManage/components/eventGroupingDrawer.js +41 -44
  47. package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +3 -0
  48. package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
  49. package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
  50. package/es/modules/dataManage/components/importAttrDialog/index.js +159 -0
  51. package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
  52. package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +3 -0
  53. package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
  54. package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
  55. package/es/modules/dataManage/components/importMetaDialog/index.js +159 -0
  56. package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
  57. package/es/modules/dataManage/components/selectAttributes.js +10 -10
  58. package/es/modules/dataManage/components/tablePlus.d.ts +4 -0
  59. package/es/modules/dataManage/components/tablePlus.js +624 -93
  60. package/es/modules/dataManage/components/virtualTablePlus.js +7 -7
  61. package/es/modules/dataManage/demo/index.d.ts +2 -1
  62. package/es/modules/dataManage/demo/index.js +79 -16
  63. package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
  64. package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
  65. package/es/modules/dataManage/detailedData/index.d.ts +24 -0
  66. package/es/modules/dataManage/detailedData/index.js +403 -0
  67. package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
  68. package/es/modules/dataManage/detailedData/useColumns.js +135 -0
  69. package/es/modules/dataManage/index.d.ts +9 -4
  70. package/es/modules/dataManage/index.js +142 -50
  71. package/es/modules/dataManage/styles/detailed.less +74 -0
  72. package/es/modules/dataManage/styles/index.less +1195 -841
  73. package/es/modules/dataManage/types.d.ts +8 -0
  74. package/es/modules/dataManage/virtualEventList.js +13 -13
  75. package/es/modules/dataMap/component/data.d.ts +7 -0
  76. package/es/modules/dataMap/component/data.js +257 -0
  77. package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
  78. package/es/modules/dataMap/component/drawerAdd.js +379 -0
  79. package/es/modules/dataMap/component/leftTree.d.ts +7 -0
  80. package/es/modules/dataMap/component/leftTree.js +255 -0
  81. package/es/modules/dataMap/component/rightDetail.d.ts +8 -0
  82. package/es/modules/dataMap/component/rightDetail.js +668 -0
  83. package/es/modules/dataMap/component/rightDetail1.d.ts +7 -0
  84. package/es/modules/dataMap/component/rightDetail1.js +643 -0
  85. package/es/modules/dataMap/component/viewMapSetting.d.ts +24 -0
  86. package/es/modules/dataMap/component/viewMapSetting.js +161 -0
  87. package/es/modules/dataMap/css/index.css +193 -0
  88. package/es/modules/dataMap/css/index.less +210 -0
  89. package/es/modules/dataMap/demo/index.d.ts +3 -0
  90. package/es/modules/dataMap/demo/index.js +6 -0
  91. package/es/modules/dataMap/img/empty-data.png +0 -0
  92. package/es/modules/dataMap/index.d.ts +3 -0
  93. package/es/modules/dataMap/index.js +80 -0
  94. package/es/modules/dataMap/mapDetail.d.ts +3 -0
  95. package/es/modules/dataMap/mapDetail.js +53 -0
  96. package/es/modules/dataMap/mapSetting.d.ts +6 -0
  97. package/es/modules/dataMap/mapSetting.js +168 -0
  98. package/es/modules/dataPlan/addEventOrUser.js +31 -30
  99. package/es/modules/dataPlan/addPlan.js +29 -27
  100. package/es/modules/dataPlan/eventList.js +2 -2
  101. package/es/modules/dataPlan/index.js +10 -10
  102. package/es/modules/dataPlan/search.js +6 -5
  103. package/es/modules/dataPlan/styles/index.less +316 -316
  104. package/es/modules/dataPlan/tablePlus.js +3 -3
  105. package/es/modules/dataPlan/userAttributeList.js +5 -5
  106. package/es/modules/dataReal/css/index.css +48 -0
  107. package/es/modules/dataReal/css/index.less +51 -0
  108. package/es/modules/dataReal/demo/index.d.ts +3 -0
  109. package/es/modules/dataReal/demo/index.js +6 -0
  110. package/es/modules/dataReal/index1.d.ts +28 -0
  111. package/es/modules/dataReal/index1.js +246 -0
  112. package/es/modules/dataReal/table.d.ts +5 -0
  113. package/es/modules/dataReal/table.js +261 -0
  114. package/es/store/index.js +11 -11
  115. package/es/utils/index.d.ts +1 -0
  116. package/es/utils/index.js +9 -1
  117. package/package.json +10 -4
@@ -0,0 +1,261 @@
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ import React, { useEffect, useState } from 'react';
8
+ import { ListTable } from '@visactor/vtable';
9
+ import * as VTable from '@visactor/vtable';
10
+ var DataRealViewTable = function DataRealViewTable(_ref) {
11
+ var dataRecords = _ref.dataRecords;
12
+ var columns = [{
13
+ title: '触发时间',
14
+ field: 'time',
15
+ width: 160,
16
+ sort: true
17
+ }, {
18
+ title: '事件名',
19
+ field: 'eventName',
20
+ width: 160
21
+ }, {
22
+ title: '用户ID',
23
+ field: 'userId',
24
+ width: 160
25
+ }, {
26
+ title: '数据',
27
+ field: 'data',
28
+ width: 800,
29
+ style: {
30
+ autoWrapText: true,
31
+ lineHeight: 30
32
+ }
33
+ // customRender(args: any) {
34
+ // const { dataValue } = args;
35
+ // const elements: {}[] = [];
36
+ // let top = 30;
37
+ // const left = 15;
38
+ // elements.push({
39
+ // type: 'text',
40
+ // fill: '#007eff',
41
+ // x: left + 10,
42
+ // y: top - 10,
43
+ // text: '基本信息',
44
+ // });
45
+ // elements.push({
46
+ // type: 'text',
47
+ // fill: '#333',
48
+ // fontSize: 13,
49
+ // fontWeight: 400,
50
+ // textBaseline: 'middle',
51
+ // text: `(${JSON.stringify(dataValue['base'])})`,
52
+ // x: left + 10,
53
+ // y: top + 10,
54
+ // width: 300,
55
+ // textAlign: 'left',
56
+ // autoWrapText: true,
57
+ // maxLineWidth:500,
58
+ // style: {
59
+ // autoWrapText: true,
60
+ // },
61
+ // });
62
+ // elements.push({
63
+ // type: 'text',
64
+ // fill: '#007eff',
65
+ // x: left + 10,
66
+ // y: top + 50,
67
+ // text: '其他信息',
68
+ // });
69
+ // elements.push({
70
+ // type: 'text',
71
+ // fill: '#333',
72
+ // fontSize: 13,
73
+ // fontWeight: 400,
74
+ // textBaseline: 'middle',
75
+ // text: `(${JSON.stringify(dataValue['detail'])})`,
76
+ // x: left + 10,
77
+ // y: top + 70,
78
+ // width: 1000,
79
+ // textAlign: 'left',
80
+ // });
81
+ // return {
82
+ // elements,
83
+ // expectedWidth: 400,
84
+ // expectedHeight: 120,
85
+ // };
86
+ // },
87
+ // customLayout(args) {
88
+ // console.log(args, '收到了');
89
+ // const { table, row, col, rect, dataValue } = args;
90
+ // const { height, width } = rect || table.getCellRect(col, row);
91
+ // const container = (
92
+ // <VGroup
93
+ // attribute={{
94
+ // width,
95
+ // height,
96
+ // display: 'flex',
97
+ // flexWrap: 'wrap',
98
+ // justifyContent: 'flex-start',
99
+ // alignContent: 'center'
100
+ // }}
101
+ // >
102
+ // <VText
103
+ // attribute={{
104
+ // text:JSON.stringify(dataValue['base']),
105
+ // fontSize: 13,
106
+ // fontFamily: 'sans-serif',
107
+ // fill: 'black',
108
+ // }}
109
+ // ></VText>
110
+ // {/* <VText
111
+ // attribute={{
112
+ // text: JSON.stringify(dataValue['detail']),
113
+ // fontSize: 11,
114
+ // fontFamily: 'sans-serif',
115
+ // fill: 'black',
116
+ // textAlign: 'left',
117
+ // wordBreak: 'break-word',
118
+ // textBaseline: 'top',
119
+ // boundsPadding: [0, 0, 0, 10],
120
+ // }}
121
+ // ></VText> */}
122
+ // </VGroup>
123
+ // );
124
+ // return {
125
+ // rootContainer: container,
126
+ // renderDefault: false,
127
+ // };
128
+ // },
129
+ }];
130
+ var option = {
131
+ records: dataRecords,
132
+ columns: columns,
133
+ SortState: {
134
+ /** 排序依据字段 */
135
+ field: 'time',
136
+ /** 排序规则 */
137
+ order: 'asc'
138
+ },
139
+ maxCharactersNumber: 1000000,
140
+ autoWrapText: true,
141
+ defaultHeaderRowHeight: 70,
142
+ // defaultRowHeight: 'auto', // 默认单元格行高
143
+ defaultRowHeight: 470,
144
+ enableLineBreak: true,
145
+ rowSeriesNumber: {
146
+ title: '序号'
147
+ },
148
+ keyboardOptions: {
149
+ // 快捷键配置
150
+ moveEditCellOnArrowKeys: true,
151
+ copySelected: true,
152
+ pasteValueToCell: true
153
+ },
154
+ editor: '',
155
+ autoFillWidth: true,
156
+ emptyTip: {
157
+ // 空数据提示
158
+ text: '暂无数据'
159
+ },
160
+ tooltip: {
161
+ isShowOverflowTextTooltip: true
162
+ }
163
+ };
164
+ var _useState = useState(),
165
+ _useState2 = _slicedToArray(_useState, 2),
166
+ vtable = _useState2[0],
167
+ setVtable = _useState2[1];
168
+ var popup = document.createElement('div');
169
+ Object.assign(popup.style, {
170
+ position: 'fixed',
171
+ width: '300px',
172
+ height: '400px',
173
+ overflowY: 'scroll',
174
+ wordBreak: 'break-all',
175
+ backgroundColor: '#f1f1f1',
176
+ border: '1px solid #ccc',
177
+ padding: '20px',
178
+ textAlign: 'left'
179
+ });
180
+ function showTooltip(data, x, y) {
181
+ popup.innerHTML = '';
182
+ popup.id = 'popup';
183
+ popup.style.left = x + 'px';
184
+ popup.style.top = y + 'px';
185
+ var heading = document.createElement('h4');
186
+ heading.textContent = '数据信息';
187
+ heading.style.margin = '10px 0px';
188
+ popup.appendChild(heading);
189
+ var info1 = document.createElement('p');
190
+ info1.textContent = data; // 点击的单元格文本信息
191
+ popup.appendChild(info1);
192
+ // 将弹出框添加到文档主体中
193
+ document.body.appendChild(popup);
194
+ }
195
+ function hideTooltip() {
196
+ if (document.body.contains(popup)) {
197
+ document.body.removeChild(popup);
198
+ }
199
+ }
200
+ useEffect(function () {
201
+ // 初始化表格
202
+ var initVtable = new ListTable(document.getElementById('tableContainer'), option);
203
+ initVtable.on('mouseenter_cell', function (args) {
204
+ var col = args.col,
205
+ row = args.row,
206
+ targetIcon = args.targetIcon;
207
+ if (col == 4 && row != 0) {
208
+ var rect = initVtable.getVisibleCellRangeRelativeRect({
209
+ col: col,
210
+ row: row
211
+ });
212
+ initVtable.showTooltip(col, row, {
213
+ content: '数据' + initVtable.getCellValue(col, row),
214
+ referencePosition: {
215
+ rect: rect,
216
+ placement: VTable.TYPES.Placement.right
217
+ },
218
+ className: 'defineTooltip',
219
+ disappearDelay: 100,
220
+ style: {
221
+ bgColor: 'black',
222
+ color: 'white',
223
+ font: 'normal bold normal 14px/1 STKaiti',
224
+ arrowMark: true,
225
+ maxHeight: '400px',
226
+ overflowY: 'scroll'
227
+ }
228
+ });
229
+ }
230
+ });
231
+ // initVtable.on('click_cell', (args: any) => {
232
+ // console.log('监听到了', args);
233
+ // if (args.field == 'data') {
234
+ // showTooltip(args.dataValue, args.event.x, args.event.y);
235
+ // }
236
+ // });
237
+ // initVtable.on('mouseleave_cell', (args) => {
238
+ // hideTooltip();
239
+ // });
240
+ setVtable(initVtable);
241
+ }, []);
242
+ // 创建 VTable 实例
243
+ useEffect(function () {
244
+ vtable === null || vtable === void 0 ? void 0 : vtable.setRecords(dataRecords);
245
+ }, [dataRecords]);
246
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
247
+ style: {
248
+ width: '100%',
249
+ height: '500px',
250
+ position: 'relative'
251
+ }
252
+ }, /*#__PURE__*/React.createElement("div", {
253
+ id: "tableContainer",
254
+ style: {
255
+ position: 'absolute',
256
+ width: '100%',
257
+ height: '500px'
258
+ }
259
+ })));
260
+ };
261
+ export default DataRealViewTable;
package/es/store/index.js CHANGED
@@ -1,15 +1,15 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- 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; }
6
- 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; } }
7
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
7
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
8
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
13
  import { useReducer, createContext } from 'react';
14
14
  import { initState } from './state';
15
15
  import { ActionType } from './action';
@@ -54,3 +54,4 @@ export declare const nullToEmptyString: (data: any) => any;
54
54
  * @param {*} id 当前页面中有多个table时需要制定table的id
55
55
  */
56
56
  export declare function getTableScroll(extraHeight?: any, id?: any): string;
57
+ export declare const guid: () => string;
package/es/utils/index.js CHANGED
@@ -40,6 +40,8 @@ export var getVirtualContentChange = function getVirtualContentChange(oldData, n
40
40
  if (oldData.eventName != newData.eventName) {
41
41
  return true;
42
42
  }
43
+ //数据兼容,部分数据返回的是null,应统一使用 -1,做未分组情况的判断
44
+ if (oldData.groupId === null) oldData.groupId = -1;
43
45
  if (oldData.groupId != newData.eventGroupId) {
44
46
  return true;
45
47
  }
@@ -347,4 +349,10 @@ export function getTableScroll(extraHeight, id) {
347
349
  // let height = document.body.clientHeight - tHeaderBottom - extraHeight
348
350
  var height = "calc(100vh - ".concat(tHeaderBottom + extraHeight, "px)");
349
351
  return height;
350
- }
352
+ }
353
+ export var guid = function guid() {
354
+ function s4() {
355
+ return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
356
+ }
357
+ return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
358
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.42-alpha.9",
3
+ "version": "1.0.56-zhongyuan.10",
4
4
  "license": "ISC",
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -28,7 +28,14 @@
28
28
  ]
29
29
  },
30
30
  "dependencies": {
31
+ "@types/lodash-es": "^4.17.12",
32
+ "@visactor/react-vtable": "^1.12.0",
33
+ "@visactor/vtable": "^1.12.0",
31
34
  "array-move": "^4.0.0",
35
+ "echarts": "^5.6.0",
36
+ "echarts-for-react": "^3.0.2",
37
+ "lodash-es": "^4.17.21",
38
+ "moment": "^2.30.1",
32
39
  "react": "^16.12.0 || ^17.0.0",
33
40
  "react-sortable-hoc": "^2.0.0"
34
41
  },
@@ -39,19 +46,18 @@
39
46
  "@types/lodash": "^4.14.182",
40
47
  "@umijs/fabric": "^2.8.1",
41
48
  "@umijs/test": "^3.0.5",
42
- "@zgfe/business-lib": "1.2.3-heyh.1",
49
+ "@zgfe/business-lib": "1.2.70-hxd.1",
43
50
  "antd": "4.24.10",
44
51
  "dumi": "^1.1.0",
45
52
  "father-build": "^1.17.2",
46
53
  "gh-pages": "^3.0.0",
47
54
  "lerna": "^4.0.0",
48
55
  "lint-staged": "^10.0.7",
49
- "lodash": "^4.17.21",
50
56
  "prettier": "^2.2.1",
51
57
  "umi-request": "^1.4.0",
52
58
  "yorkie": "^2.0.0"
53
59
  },
54
- "gitHead": "951170e644a46fd388269e91dea5d98e9f52bb2b",
60
+ "gitHead": "b920bdeaae434c1e3032f9aa3262b8cb33654211",
55
61
  "gitHooks": {
56
62
  "pre-commit": "lint-staged"
57
63
  }