@zgfe/modules-event 1.0.29-zhongyuanE.17 → 1.0.29-zhongyuanE.23

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 (92) hide show
  1. package/es/components/eventFilter/index.d.ts +5 -0
  2. package/es/components/eventFilter/index.js +315 -0
  3. package/es/components/eventFilter/setCascade.d.ts +3 -0
  4. package/es/components/eventFilter/setCascade.js +286 -0
  5. package/es/components/eventFilter/types.d.ts +21 -0
  6. package/es/components/eventFilter/types.js +1 -0
  7. package/es/components/index.d.ts +4 -0
  8. package/es/components/index.js +4 -0
  9. package/es/components/renderContent/index.d.ts +5 -0
  10. package/es/components/renderContent/index.js +46 -0
  11. package/es/components/renderContent/styles/index.less +19 -0
  12. package/es/components/renderContent/types.d.ts +8 -0
  13. package/es/components/renderContent/types.js +1 -0
  14. package/es/components/searchPanel/index.d.ts +5 -0
  15. package/es/components/searchPanel/index.js +134 -0
  16. package/es/components/searchPanel/styles/index.less +22 -0
  17. package/es/components/searchPanel/types.d.ts +28 -0
  18. package/es/components/searchPanel/types.js +1 -0
  19. package/es/components/table/index.d.ts +6 -0
  20. package/es/components/table/index.js +319 -0
  21. package/es/components/table/styles/index.css +236 -0
  22. package/es/components/table/styles/index.less +249 -0
  23. package/es/components/table/types.d.ts +10 -0
  24. package/es/components/table/types.js +1 -0
  25. package/es/components/topBar/index.d.ts +10 -0
  26. package/es/components/topBar/index.js +174 -0
  27. package/es/components/topBar/styles/index.less +58 -0
  28. package/es/components/topBar/types.d.ts +8 -0
  29. package/es/components/topBar/types.js +1 -0
  30. package/es/constants/apis.d.ts +10 -0
  31. package/es/constants/apis.js +10 -0
  32. package/es/constants/chart.d.ts +2 -0
  33. package/es/constants/chart.js +31 -0
  34. package/es/constants/color.d.ts +1 -0
  35. package/es/constants/color.js +1 -0
  36. package/es/constants/fields.d.ts +251 -0
  37. package/es/constants/fields.js +177 -0
  38. package/es/constants/index.d.ts +6 -0
  39. package/es/constants/index.js +6 -0
  40. package/es/constants/initData.d.ts +2 -0
  41. package/es/constants/initData.js +9 -0
  42. package/es/index.d.ts +6 -0
  43. package/es/index.js +5 -0
  44. package/es/modules/chart/demo/data.d.ts +73 -0
  45. package/es/modules/chart/demo/data.js +484 -0
  46. package/es/modules/chart/demo/index.d.ts +3 -0
  47. package/es/modules/chart/demo/index.js +51 -0
  48. package/es/modules/chart/demo/panel.d.ts +3 -0
  49. package/es/modules/chart/demo/panel.js +16 -0
  50. package/es/modules/chart/index.d.ts +4 -0
  51. package/es/modules/chart/index.js +253 -0
  52. package/es/modules/chart/types.d.ts +19 -0
  53. package/es/modules/chart/types.js +1 -0
  54. package/es/modules/content/index.d.ts +5 -0
  55. package/es/modules/content/index.js +302 -0
  56. package/es/modules/content/styles/index.less +19 -0
  57. package/es/modules/content/types.d.ts +11 -0
  58. package/es/modules/content/types.js +1 -0
  59. package/es/modules/content/utils.d.ts +18 -0
  60. package/es/modules/content/utils.js +134 -0
  61. package/es/modules/home/demo/create.d.ts +3 -0
  62. package/es/modules/home/demo/create.js +58 -0
  63. package/es/modules/home/demo/edit.d.ts +3 -0
  64. package/es/modules/home/demo/edit.js +73 -0
  65. package/es/modules/home/demo/index.d.ts +4 -0
  66. package/es/modules/home/demo/index.js +55 -0
  67. package/es/modules/home/demo/scene.d.ts +3 -0
  68. package/es/modules/home/demo/scene.js +89 -0
  69. package/es/modules/home/demo/styles/index.less +33 -0
  70. package/es/modules/home/index.d.ts +5 -0
  71. package/es/modules/home/index.js +184 -0
  72. package/es/modules/home/styles/index.less +49 -0
  73. package/es/modules/home/types.d.ts +34 -0
  74. package/es/modules/home/types.js +1 -0
  75. package/es/modules/topPanel/index.d.ts +5 -0
  76. package/es/modules/topPanel/index.js +246 -0
  77. package/es/modules/topPanel/styles/index.less +50 -0
  78. package/es/modules/topPanel/types.d.ts +46 -0
  79. package/es/modules/topPanel/types.js +1 -0
  80. package/es/style/theme.d.ts +15 -0
  81. package/es/style/theme.js +14 -0
  82. package/es/types.d.ts +86 -0
  83. package/es/types.js +6 -0
  84. package/es/utils/ajaxConfig.d.ts +8 -0
  85. package/es/utils/ajaxConfig.js +40 -0
  86. package/es/utils/base64.d.ts +23 -0
  87. package/es/utils/base64.js +125 -0
  88. package/es/utils/formData.d.ts +20 -0
  89. package/es/utils/formData.js +406 -0
  90. package/es/utils/util.d.ts +32 -0
  91. package/es/utils/util.js +139 -0
  92. package/package.json +2 -2
@@ -0,0 +1,484 @@
1
+ export var result = {
2
+ xAxis: ['2023-06-14', '2023-06-15', '2023-06-16', '2023-06-17', '2023-06-18', '2023-06-19', '2023-06-20', '2023-06-21'],
3
+ series: [{
4
+ duration: [],
5
+ index: '人数',
6
+ names: ['崩溃1(人数)'],
7
+ values: [20, 20, 20, 20, 20, 20, 20, 20]
8
+ }, {
9
+ duration: [],
10
+ index: null,
11
+ names: ['访问次数'],
12
+ values: [170, 170, 170, 170, 170, 170, 170, 170]
13
+ }, {
14
+ duration: [],
15
+ index: null,
16
+ names: ['活跃用户'],
17
+ values: [80, 80, 80, 80, 80, 80, 80, 80]
18
+ }, {
19
+ duration: [],
20
+ index: '人数',
21
+ names: ['间隔事件-01(人数)'],
22
+ values: [10, 10, 10, 10, 10, 10, 10, 10]
23
+ }, {
24
+ duration: [],
25
+ index: '人数',
26
+ names: ['间隔事件-02(人数)'],
27
+ values: [10, 10, 10, 10, 10, 10, 10, 10]
28
+ }, {
29
+ duration: [],
30
+ index: '人数',
31
+ names: ['埋点事件-01(人数)'],
32
+ values: [70, 70, 70, 70, 70, 70, 70, 70]
33
+ }, {
34
+ duration: [],
35
+ index: '人数',
36
+ names: ['埋点事件-02(人数)'],
37
+ values: [60, 60, 60, 60, 60, 60, 60, 60]
38
+ }, {
39
+ duration: [],
40
+ index: '人数',
41
+ names: ['埋点事件-03(人数)'],
42
+ values: [60, 60, 60, 60, 60, 60, 60, 60]
43
+ }, {
44
+ duration: [],
45
+ index: '人数',
46
+ names: ['埋点事件-04(人数)'],
47
+ values: [60, 60, 60, 60, 60, 60, 60, 60]
48
+ }, {
49
+ duration: [],
50
+ index: '人数',
51
+ names: ['埋点事件-05(人数)'],
52
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
53
+ }, {
54
+ duration: [],
55
+ index: '人数',
56
+ names: ['埋点事件-06(人数)'],
57
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
58
+ }, {
59
+ duration: [],
60
+ index: '人数',
61
+ names: ['埋点事件-07(人数)'],
62
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
63
+ }, {
64
+ duration: [],
65
+ index: '人数',
66
+ names: ['埋点事件-08(人数)'],
67
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
68
+ }, {
69
+ duration: [],
70
+ index: '人数',
71
+ names: ['埋点事件-09(人数)'],
72
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
73
+ }, {
74
+ duration: [],
75
+ index: '人数',
76
+ names: ['埋点事件-10(人数)'],
77
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
78
+ }, {
79
+ duration: [],
80
+ index: '人数',
81
+ names: ['埋点事件-11(人数)'],
82
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
83
+ }, {
84
+ duration: [],
85
+ index: '人数',
86
+ names: ['埋点事件-12(人数)'],
87
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
88
+ }, {
89
+ duration: [],
90
+ index: '人数',
91
+ names: ['埋点事件-13(人数)'],
92
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
93
+ }, {
94
+ duration: [],
95
+ index: '人数',
96
+ names: ['埋点事件-14(人数)'],
97
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
98
+ }, {
99
+ duration: [],
100
+ index: '人数',
101
+ names: ['埋点事件-15(人数)'],
102
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
103
+ }, {
104
+ duration: [],
105
+ index: '人数',
106
+ names: ['埋点事件-16(人数)'],
107
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
108
+ }, {
109
+ duration: [],
110
+ index: '人数',
111
+ names: ['埋点事件-17(人数)'],
112
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
113
+ }, {
114
+ duration: [],
115
+ index: '人数',
116
+ names: ['埋点事件-18(人数)'],
117
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
118
+ }, {
119
+ duration: [],
120
+ index: '人数',
121
+ names: ['埋点事件-19(人数)'],
122
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
123
+ }, {
124
+ duration: [],
125
+ index: '人数',
126
+ names: ['埋点事件-20(人数)'],
127
+ values: [40, 40, 40, 40, 40, 40, 40, 40]
128
+ }, {
129
+ duration: [],
130
+ index: null,
131
+ names: ['平均使用时长(s)'],
132
+ values: [2.04, 2.04, 2.02, 944.18, 944.18, 944.18, 944.18, 0]
133
+ }, {
134
+ duration: [{
135
+ name: '1-5秒',
136
+ values: [163, 164, 164, 10, 10, 10, 10, 0]
137
+ }, {
138
+ name: '6-30秒',
139
+ values: [7, 6, 6, 0, 0, 0, 0, 0]
140
+ }, {
141
+ name: '31-60秒',
142
+ values: [0, 0, 0, 0, 0, 0, 0, 0]
143
+ }, {
144
+ name: '1-3分',
145
+ values: [0, 0, 0, 2, 2, 2, 2, 0]
146
+ }, {
147
+ name: '3-10分',
148
+ values: [0, 0, 0, 27, 27, 27, 27, 0]
149
+ }, {
150
+ name: '10-30分',
151
+ values: [0, 0, 0, 131, 131, 131, 131, 0]
152
+ }, {
153
+ name: '30-60分',
154
+ values: [0, 0, 0, 0, 0, 0, 0, 0]
155
+ }, {
156
+ name: '1小时以上',
157
+ values: [0, 0, 0, 0, 0, 0, 0, 0]
158
+ }],
159
+ index: null,
160
+ names: ['使用时长分布(访问次数)'],
161
+ values: [170, 170, 170, 170, 170, 170, 170, 0]
162
+ }, {
163
+ duration: [{
164
+ name: '1-5秒',
165
+ values: [73, 74, 74, 10, 10, 10, 10, 0]
166
+ }, {
167
+ name: '6-30秒',
168
+ values: [7, 6, 6, 0, 0, 0, 0, 0]
169
+ }, {
170
+ name: '31-60秒',
171
+ values: [0, 0, 0, 0, 0, 0, 0, 0]
172
+ }, {
173
+ name: '1-3分',
174
+ values: [0, 0, 0, 2, 2, 2, 2, 0]
175
+ }, {
176
+ name: '3-10分',
177
+ values: [0, 0, 0, 27, 27, 27, 27, 0]
178
+ }, {
179
+ name: '10-30分',
180
+ values: [0, 0, 0, 41, 41, 41, 41, 0]
181
+ }, {
182
+ name: '30-60分',
183
+ values: [0, 0, 0, 0, 0, 0, 0, 0]
184
+ }, {
185
+ name: '1小时以上',
186
+ values: [0, 0, 0, 0, 0, 0, 0, 0]
187
+ }],
188
+ index: null,
189
+ names: ['使用时长分布(活跃用户)'],
190
+ values: [80, 80, 80, 80, 80, 80, 80, 0]
191
+ }, {
192
+ duration: [],
193
+ index: '人数',
194
+ names: ['收入(人数)'],
195
+ values: [10, 10, 10, 10, 10, 10, 10, 10]
196
+ }, {
197
+ duration: [],
198
+ index: null,
199
+ names: ['新增用户'],
200
+ values: [70, 70, 70, 70, 70, 70, 70, 0]
201
+ }, {
202
+ duration: [],
203
+ index: '人数',
204
+ names: ['页面访问(人数)'],
205
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
206
+ }, {
207
+ duration: [],
208
+ index: '人数',
209
+ names: ['页面停留时长(人数)'],
210
+ values: [50, 50, 50, 50, 50, 50, 50, 50]
211
+ }]
212
+ };
213
+ export var totalResult = {
214
+ xAxis: ['2023-06-22|2023-06-29'],
215
+ series: [{
216
+ duration: [],
217
+ index: '人数',
218
+ names: ['所有用户', '埋点事件-01'],
219
+ original_names: [],
220
+ p_total: [],
221
+ total: [],
222
+ values: [130]
223
+ }, {
224
+ duration: [],
225
+ index: '人数',
226
+ names: ['所有用户', '埋点事件-04'],
227
+ original_names: [],
228
+ p_total: [],
229
+ total: [],
230
+ values: [110]
231
+ }, {
232
+ duration: [],
233
+ index: '人数',
234
+ names: ['所有用户', '埋点事件-03'],
235
+ original_names: [],
236
+ p_total: [],
237
+ total: [],
238
+ values: [110]
239
+ }, {
240
+ duration: [],
241
+ index: '人数',
242
+ names: ['所有用户', '埋点事件-02'],
243
+ original_names: [],
244
+ p_total: [],
245
+ total: [],
246
+ values: [110]
247
+ }, {
248
+ duration: [],
249
+ index: '人数',
250
+ names: ['所有用户', '页面访问'],
251
+ original_names: [],
252
+ p_total: [],
253
+ total: [],
254
+ values: [90]
255
+ }, {
256
+ duration: [],
257
+ index: '人数',
258
+ names: ['所有用户', '页面停留时长'],
259
+ original_names: [],
260
+ p_total: [],
261
+ total: [],
262
+ values: [90]
263
+ }, {
264
+ duration: [],
265
+ index: '人数',
266
+ names: ['所有用户', '埋点事件-06'],
267
+ original_names: [],
268
+ p_total: [],
269
+ total: [],
270
+ values: [90]
271
+ }, {
272
+ duration: [],
273
+ index: '人数',
274
+ names: ['所有用户', '埋点事件-07'],
275
+ original_names: [],
276
+ p_total: [],
277
+ total: [],
278
+ values: [90]
279
+ }, {
280
+ duration: [],
281
+ index: '人数',
282
+ names: ['所有用户', '埋点事件-09'],
283
+ original_names: [],
284
+ p_total: [],
285
+ total: [],
286
+ values: [90]
287
+ }, {
288
+ duration: [],
289
+ index: '人数',
290
+ names: ['所有用户', '埋点事件-08'],
291
+ original_names: [],
292
+ p_total: [],
293
+ total: [],
294
+ values: [90]
295
+ }, {
296
+ duration: [],
297
+ index: '人数',
298
+ names: ['所有用户', '埋点事件-10'],
299
+ original_names: [],
300
+ p_total: [],
301
+ total: [],
302
+ values: [90]
303
+ }, {
304
+ duration: [],
305
+ index: '人数',
306
+ names: ['所有用户', '埋点事件-05'],
307
+ original_names: [],
308
+ p_total: [],
309
+ total: [],
310
+ values: [90]
311
+ }, {
312
+ duration: [],
313
+ index: '人数',
314
+ names: ['所有用户', '埋点事件-14'],
315
+ original_names: [],
316
+ p_total: [],
317
+ total: [],
318
+ values: [70]
319
+ }, {
320
+ duration: [],
321
+ index: '人数',
322
+ names: ['所有用户', '埋点事件-12'],
323
+ original_names: [],
324
+ p_total: [],
325
+ total: [],
326
+ values: [70]
327
+ }, {
328
+ duration: [],
329
+ index: '人数',
330
+ names: ['所有用户', '埋点事件-19'],
331
+ original_names: [],
332
+ p_total: [],
333
+ total: [],
334
+ values: [70]
335
+ }, {
336
+ duration: [],
337
+ index: '人数',
338
+ names: ['所有用户', '埋点事件-18'],
339
+ original_names: [],
340
+ p_total: [],
341
+ total: [],
342
+ values: [70]
343
+ }, {
344
+ duration: [],
345
+ index: '人数',
346
+ names: ['所有用户', '埋点事件-15'],
347
+ original_names: [],
348
+ p_total: [],
349
+ total: [],
350
+ values: [70]
351
+ }, {
352
+ duration: [],
353
+ index: '人数',
354
+ names: ['所有用户', '埋点事件-11'],
355
+ original_names: [],
356
+ p_total: [],
357
+ total: [],
358
+ values: [70]
359
+ }, {
360
+ duration: [],
361
+ index: '人数',
362
+ names: ['所有用户', '埋点事件-16'],
363
+ original_names: [],
364
+ p_total: [],
365
+ total: [],
366
+ values: [70]
367
+ }, {
368
+ duration: [],
369
+ index: '人数',
370
+ names: ['所有用户', '埋点事件-20'],
371
+ original_names: [],
372
+ p_total: [],
373
+ total: [],
374
+ values: [70]
375
+ }, {
376
+ duration: [],
377
+ index: '人数',
378
+ names: ['所有用户', '埋点事件-17'],
379
+ original_names: [],
380
+ p_total: [],
381
+ total: [],
382
+ values: [70]
383
+ }, {
384
+ duration: [],
385
+ index: '人数',
386
+ names: ['所有用户', '埋点事件-13'],
387
+ original_names: [],
388
+ p_total: [],
389
+ total: [],
390
+ values: [70]
391
+ }, {
392
+ duration: [],
393
+ index: '人数',
394
+ names: ['所有用户', '崩溃'],
395
+ original_names: [],
396
+ p_total: [],
397
+ total: [],
398
+ values: [40]
399
+ }, {
400
+ duration: [],
401
+ index: '人数',
402
+ names: ['所有用户', '收入'],
403
+ original_names: [],
404
+ p_total: [],
405
+ total: [],
406
+ values: [20]
407
+ }, {
408
+ duration: [],
409
+ index: '人数',
410
+ names: ['所有用户', '间隔事件-02'],
411
+ original_names: [],
412
+ p_total: [],
413
+ total: [],
414
+ values: [20]
415
+ }, {
416
+ duration: [],
417
+ index: '人数',
418
+ names: ['所有用户', '间隔事件-01'],
419
+ original_names: [],
420
+ p_total: [],
421
+ total: [],
422
+ values: [20]
423
+ }, {
424
+ duration: [],
425
+ index: null,
426
+ names: ['所有用户', '新增用户'],
427
+ original_names: [],
428
+ p_total: [],
429
+ total: [],
430
+ values: [0]
431
+ }, {
432
+ duration: [],
433
+ index: null,
434
+ names: ['所有用户', '活跃用户'],
435
+ original_names: [],
436
+ p_total: [],
437
+ total: [],
438
+ values: [150]
439
+ }, {
440
+ duration: [],
441
+ index: null,
442
+ names: ['所有用户', '访问次数'],
443
+ original_names: [],
444
+ p_total: [],
445
+ total: [],
446
+ values: [340]
447
+ }]
448
+ };
449
+ export var searchData = {
450
+ appId: 266,
451
+ platform: 0,
452
+ module: 'event',
453
+ time: {
454
+ begin: '2023-08-22',
455
+ end: '2023-09-05',
456
+ relative: [14, 0],
457
+ unit: 'day'
458
+ },
459
+ analysisIndex: 'number',
460
+ chartType: 'line',
461
+ userGroup: [0]
462
+ };
463
+ export var totalSearchData = {
464
+ appId: 96,
465
+ platform: 0,
466
+ targets: [{
467
+ type: 'event',
468
+ alias: '事件概览',
469
+ eventId: -100,
470
+ eventName: '事件概览',
471
+ eventGroupId: 0,
472
+ analysisDimension: {
473
+ analysisIndex: 'number'
474
+ }
475
+ }],
476
+ userGroup: [0],
477
+ time: {
478
+ unit: 'day',
479
+ relative: [7, 0],
480
+ begin: '2023-06-22',
481
+ end: '2023-06-29'
482
+ },
483
+ chartType: 'bar,grid'
484
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,51 @@
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, { useState } from 'react';
8
+ import { EventChart } from '@zgfe/modules-event';
9
+ import { result, searchData, totalResult } from './data';
10
+ import { BizSelect, DemoWrapper } from '@zgfe/business-lib';
11
+ import { chartTypeOptions } from '../../../constants';
12
+ export default (function () {
13
+ var _useState = useState({
14
+ label: '趋势图',
15
+ value: 'line'
16
+ }),
17
+ _useState2 = _slicedToArray(_useState, 2),
18
+ chart = _useState2[0],
19
+ setChart = _useState2[1];
20
+ var _useState3 = useState(result),
21
+ _useState4 = _slicedToArray(_useState3, 2),
22
+ searchResult = _useState4[0],
23
+ setSearchResult = _useState4[1];
24
+ var onChange = function onChange(val) {
25
+ setChart(val);
26
+ setSearchResult(val.value === 'bar' || val.value === 'pie' ? totalResult : result);
27
+ };
28
+ return /*#__PURE__*/React.createElement(DemoWrapper, null, /*#__PURE__*/React.createElement("div", {
29
+ style: {
30
+ display: 'flex',
31
+ flexDirection: 'row-reverse',
32
+ marginBottom: 20
33
+ }
34
+ }, /*#__PURE__*/React.createElement(BizSelect, {
35
+ overlayWidth: 120,
36
+ options: chartTypeOptions,
37
+ defaultValue: chart,
38
+ value: chart,
39
+ labelField: "label",
40
+ keyField: "value",
41
+ theme: "secondary",
42
+ onChange: onChange
43
+ })), /*#__PURE__*/React.createElement(EventChart, {
44
+ type: chart.value,
45
+ params: searchData
46
+ }), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(EventChart, {
47
+ type: "grid",
48
+ dataSource: searchResult,
49
+ params: searchData
50
+ }));
51
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { EventChart } from '@zgfe/modules-event';
3
+ import { searchData, totalResult, totalSearchData } from './data';
4
+ export default (function () {
5
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h2", null, "\u8D8B\u52BF\u56FE\u8868\u683C"), /*#__PURE__*/React.createElement(EventChart, {
6
+ params: searchData
7
+ }), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("h2", null, "\u6C47\u603B\u56FE\u8868\u683C"), /*#__PURE__*/React.createElement("div", {
8
+ style: {
9
+ width: 500,
10
+ height: 500
11
+ }
12
+ }, /*#__PURE__*/React.createElement(EventChart, {
13
+ dataSource: totalResult,
14
+ params: totalSearchData
15
+ })));
16
+ });
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { eventChartProps } from './types';
3
+ declare const EventChart: React.ForwardRefExoticComponent<eventChartProps.Props & React.RefAttributes<any>>;
4
+ export default EventChart;