@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.
- package/es/components/demo.js +1 -1
- package/es/constants/api.d.ts +37 -0
- package/es/constants/api.js +62 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/modules/CutsModal.d.ts +100 -0
- package/es/modules/CutsModal.js +52 -0
- package/es/modules/dataManage/collectionAttributeList.d.ts +3 -0
- package/es/modules/dataManage/collectionAttributeList.js +524 -80
- package/es/modules/dataManage/collectionEventList.d.ts +6 -0
- package/es/modules/dataManage/collectionEventList.js +482 -62
- package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
- package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
- package/es/modules/dataManage/components/createVirtualDrawer.js +19 -19
- package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
- package/es/modules/dataManage/components/creditPop/index.d.ts +6 -0
- package/es/modules/dataManage/components/creditPop/index.js +89 -0
- package/es/modules/dataManage/components/creditPop/index.less +121 -0
- package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteConfirm.js +36 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
- package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/depositPop/index.d.ts +6 -0
- package/es/modules/dataManage/components/depositPop/index.js +89 -0
- package/es/modules/dataManage/components/depositPop/index.less +115 -0
- package/es/modules/dataManage/components/developModal/index.css +36 -0
- package/es/modules/dataManage/components/developModal/index.d.ts +6 -0
- package/es/modules/dataManage/components/developModal/index.js +224 -0
- package/es/modules/dataManage/components/developModal/index.less +36 -0
- package/es/modules/dataManage/components/editTxt/index.d.ts +3 -0
- package/es/modules/dataManage/components/editTxt/index.js +123 -0
- package/es/modules/dataManage/components/editTxt/index.less +44 -0
- package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
- package/es/modules/dataManage/components/editTxt/types.js +1 -0
- package/es/modules/dataManage/components/eventFilter/index.js +13 -13
- package/es/modules/dataManage/components/eventFilter/styles/index.less +72 -72
- package/es/modules/dataManage/components/eventGroupingDrawer.js +41 -44
- package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +3 -0
- package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importAttrDialog/index.js +159 -0
- package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +3 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importMetaDialog/index.js +159 -0
- package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
- package/es/modules/dataManage/components/selectAttributes.js +10 -10
- package/es/modules/dataManage/components/tablePlus.d.ts +4 -0
- package/es/modules/dataManage/components/tablePlus.js +624 -93
- package/es/modules/dataManage/components/virtualTablePlus.js +7 -7
- package/es/modules/dataManage/demo/index.d.ts +2 -1
- package/es/modules/dataManage/demo/index.js +79 -16
- package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
- package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
- package/es/modules/dataManage/detailedData/index.d.ts +24 -0
- package/es/modules/dataManage/detailedData/index.js +403 -0
- package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
- package/es/modules/dataManage/detailedData/useColumns.js +135 -0
- package/es/modules/dataManage/index.d.ts +9 -4
- package/es/modules/dataManage/index.js +142 -50
- package/es/modules/dataManage/styles/detailed.less +74 -0
- package/es/modules/dataManage/styles/index.less +1195 -841
- package/es/modules/dataManage/types.d.ts +8 -0
- package/es/modules/dataManage/virtualEventList.js +13 -13
- package/es/modules/dataMap/component/data.d.ts +7 -0
- package/es/modules/dataMap/component/data.js +257 -0
- package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
- package/es/modules/dataMap/component/drawerAdd.js +379 -0
- package/es/modules/dataMap/component/leftTree.d.ts +7 -0
- package/es/modules/dataMap/component/leftTree.js +255 -0
- package/es/modules/dataMap/component/rightDetail.d.ts +8 -0
- package/es/modules/dataMap/component/rightDetail.js +668 -0
- package/es/modules/dataMap/component/rightDetail1.d.ts +7 -0
- package/es/modules/dataMap/component/rightDetail1.js +643 -0
- package/es/modules/dataMap/component/viewMapSetting.d.ts +24 -0
- package/es/modules/dataMap/component/viewMapSetting.js +161 -0
- package/es/modules/dataMap/css/index.css +193 -0
- package/es/modules/dataMap/css/index.less +210 -0
- package/es/modules/dataMap/demo/index.d.ts +3 -0
- package/es/modules/dataMap/demo/index.js +6 -0
- package/es/modules/dataMap/img/empty-data.png +0 -0
- package/es/modules/dataMap/index.d.ts +3 -0
- package/es/modules/dataMap/index.js +80 -0
- package/es/modules/dataMap/mapDetail.d.ts +3 -0
- package/es/modules/dataMap/mapDetail.js +53 -0
- package/es/modules/dataMap/mapSetting.d.ts +6 -0
- package/es/modules/dataMap/mapSetting.js +168 -0
- package/es/modules/dataPlan/addEventOrUser.js +31 -30
- package/es/modules/dataPlan/addPlan.js +29 -27
- package/es/modules/dataPlan/eventList.js +2 -2
- package/es/modules/dataPlan/index.js +10 -10
- package/es/modules/dataPlan/search.js +6 -5
- package/es/modules/dataPlan/styles/index.less +316 -316
- package/es/modules/dataPlan/tablePlus.js +3 -3
- package/es/modules/dataPlan/userAttributeList.js +5 -5
- package/es/modules/dataReal/css/index.css +48 -0
- package/es/modules/dataReal/css/index.less +51 -0
- package/es/modules/dataReal/demo/index.d.ts +3 -0
- package/es/modules/dataReal/demo/index.js +6 -0
- package/es/modules/dataReal/index1.d.ts +28 -0
- package/es/modules/dataReal/index1.js +246 -0
- package/es/modules/dataReal/table.d.ts +5 -0
- package/es/modules/dataReal/table.js +261 -0
- package/es/store/index.js +11 -11
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +9 -1
- 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(
|
|
2
|
-
function _slicedToArray(
|
|
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(
|
|
5
|
-
function _arrayLikeToArray(
|
|
6
|
-
function _iterableToArrayLimit(
|
|
7
|
-
function _arrayWithHoles(
|
|
8
|
-
function ownKeys(
|
|
9
|
-
function _objectSpread(
|
|
10
|
-
function _defineProperty(
|
|
11
|
-
function _toPropertyKey(
|
|
12
|
-
function _toPrimitive(
|
|
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';
|
package/es/utils/index.d.ts
CHANGED
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.
|
|
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.
|
|
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": "
|
|
60
|
+
"gitHead": "b920bdeaae434c1e3032f9aa3262b8cb33654211",
|
|
55
61
|
"gitHooks": {
|
|
56
62
|
"pre-commit": "lint-staged"
|
|
57
63
|
}
|