@zgfe/modules-event 1.0.7 → 1.0.29-zhongyuan-event.1

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 (50) hide show
  1. package/README.md +35 -35
  2. package/es/components/eventFilter/index.js +107 -53
  3. package/es/components/eventFilter/setCascade.d.ts +3 -0
  4. package/es/components/eventFilter/setCascade.js +286 -0
  5. package/es/components/eventFilter/styles/index.less +148 -36
  6. package/es/components/eventFilter/types.d.ts +1 -0
  7. package/es/components/renderContent/index.js +16 -27
  8. package/es/components/renderContent/styles/index.less +19 -19
  9. package/es/components/renderContent/types.d.ts +0 -1
  10. package/es/components/searchPanel/index.js +35 -17
  11. package/es/components/searchPanel/styles/index.less +22 -18
  12. package/es/components/searchPanel/types.d.ts +2 -2
  13. package/es/components/table/index.js +106 -35
  14. package/es/components/table/styles/index.css +236 -0
  15. package/es/components/table/styles/index.less +249 -193
  16. package/es/components/table/types.d.ts +0 -1
  17. package/es/components/topBar/index.d.ts +6 -1
  18. package/es/components/topBar/index.js +62 -45
  19. package/es/components/topBar/styles/index.less +58 -63
  20. package/es/components/topBar/types.d.ts +0 -1
  21. package/es/constants/apis.d.ts +3 -1
  22. package/es/constants/apis.js +4 -2
  23. package/es/constants/fields.d.ts +0 -14
  24. package/es/constants/fields.js +1 -45
  25. package/es/index.d.ts +2 -1
  26. package/es/index.js +2 -1
  27. package/es/modules/chart/demo/index.js +5 -5
  28. package/es/modules/chart/demo/panel.js +7 -2
  29. package/es/modules/chart/index.js +120 -45
  30. package/es/modules/chart/types.d.ts +3 -0
  31. package/es/modules/content/index.d.ts +1 -1
  32. package/es/modules/content/index.js +116 -75
  33. package/es/modules/content/styles/index.less +19 -7
  34. package/es/modules/content/utils.d.ts +3 -2
  35. package/es/modules/content/utils.js +63 -34
  36. package/es/modules/home/demo/create.js +8 -8
  37. package/es/modules/home/demo/edit.js +14 -15
  38. package/es/modules/home/demo/index.js +13 -10
  39. package/es/modules/home/demo/scene.js +8 -8
  40. package/es/modules/home/demo/styles/index.less +33 -33
  41. package/es/modules/home/index.js +59 -41
  42. package/es/modules/home/styles/index.less +49 -49
  43. package/es/modules/topPanel/index.js +51 -23
  44. package/es/modules/topPanel/styles/index.less +50 -49
  45. package/es/style/image/ring.svg +8 -8
  46. package/es/style/index.less +62 -62
  47. package/es/types.d.ts +8 -0
  48. package/es/utils/formData.d.ts +2 -1
  49. package/es/utils/formData.js +67 -18
  50. package/package.json +24 -20
@@ -1,193 +1,249 @@
1
- .event-mi-table {
2
- margin-top: 16px;
3
- &-loading {
4
- min-height: 300px;
5
- }
6
- &-table-header {
7
- display: flex;
8
- align-items: center;
9
- justify-content: space-between;
10
- height: 50px;
11
- margin-bottom: -1px;
12
- padding: 0 12px;
13
- line-height: 50px;
14
- background: #fafafb;
15
- border: 1px solid #e6e7ea;
16
- border-radius: 8px 8px 0 0;
17
- > :nth-child(2) {
18
- display: flex;
19
- > :nth-child(1) {
20
- margin-right: 16px;
21
- }
22
- div {
23
- height: 32px;
24
- padding: 0 16px;
25
- line-height: 32px;
26
- background: #fff;
27
- border: 1px solid #f2f3f4;
28
- border-radius: 4px;
29
- cursor: pointer;
30
- .xiazai1 {
31
- margin-right: 4px;
32
- font-size: 18px !important;
33
- vertical-align: -2px;
34
- }
35
- }
36
- div:hover {
37
- color: #165dff;
38
- background: #e8efff;
39
- border: 1px solid #165dff;
40
- }
41
- div:active {
42
- color: #1454e5;
43
- background: #e8efff;
44
- border: 1px solid #1454e5;
45
- }
46
- }
47
- }
48
- .ant-table {
49
- border-radius: 0 0 8px 8px;
50
- }
51
- .sourcepanel-table-header {
52
- overflow: hidden;
53
- border-radius: 8px 8px 0 0;
54
- .ant-table {
55
- max-height: none;
56
- }
57
- }
58
- .ant-pagination {
59
- margin-top: 24px !important;
60
- }
61
- .ant-table
62
- .ant-table-thead
63
- .ant-table-cell.ant-table-column-has-sorters
64
- .ant-table-column-sorters {
65
- justify-content: flex-end !important;
66
- }
67
- .ant-table-cell-with-append {
68
- padding-left: 20px;
69
- .ant-table-row-expand-icon {
70
- position: absolute;
71
- left: 0;
72
- margin-top: 0;
73
- }
74
- }
75
- .tooltip-name-box {
76
- display: flex;
77
- &-market {
78
- // max-width: calc(100% - 20px);
79
- margin-right: 8px;
80
- overflow: hidden;
81
- white-space: nowrap;
82
- text-overflow: ellipsis;
83
- cursor: pointer;
84
- -webkit-line-clamp: 1;
85
- -webkit-box-orient: vertical;
86
- .shoucang {
87
- color: #fd9f41;
88
- font-size: 16px !important;
89
- }
90
- .notshoucang {
91
- opacity: 0;
92
- }
93
- }
94
-
95
- .fuzhi1 {
96
- display: none;
97
- font-size: 16px !important;
98
- }
99
- .fuzhi1:hover {
100
- color: #165dff;
101
- }
102
- }
103
- .tooltip-name-box:hover {
104
- .fuzhi1 {
105
- display: block;
106
- }
107
- }
108
-
109
- &-table-empty {
110
- img {
111
- width: 50px !important;
112
- height: auto;
113
- margin-top: 30px;
114
- margin-bottom: 10px;
115
- }
116
- p {
117
- color: rgba(0, 0, 0, 0.25);
118
- }
119
- }
120
-
121
- &-chart-box {
122
- display: flex;
123
- flex-direction: column;
124
- width: 100%;
125
- &-tooltip {
126
- width: 200px;
127
- margin-bottom: 24px;
128
- color: #67727f;
129
- font-size: 12px;
130
- }
131
- }
132
- }
133
- .event-table-sql-modal {
134
- .ant-modal {
135
- width: 720px !important;
136
- }
137
- .ant-modal-header {
138
- position: relative;
139
- z-index: 1;
140
- height: 82px;
141
- background: transparent;
142
- }
143
- .ant-modal-body {
144
- padding: 0 24px 24px 24px;
145
- }
146
- .ant-modal-close-x {
147
- margin-top: 13px;
148
- margin-right: 8px;
149
- }
150
- img {
151
- width: 100%;
152
- }
153
- .qingchu {
154
- font-weight: 500;
155
- font-size: 22px !important;
156
- }
157
- .modal-bg {
158
- position: absolute;
159
- top: 0;
160
- left: 0;
161
- width: 100%;
162
- height: auto;
163
- }
164
- pre {
165
- margin-bottom: 0;
166
- }
167
- .hljs {
168
- height: 400px;
169
- padding: 16px;
170
- padding-bottom: 0;
171
- background: #fafafb;
172
- border-radius: 8px;
173
- }
174
- .copy-box {
175
- position: absolute;
176
- top: 98px;
177
- right: 40px;
178
- padding: 0 8px;
179
- background: #f2f3f4;
180
- border-radius: 4px;
181
- .fuzhi1 {
182
- margin-right: 8px;
183
- }
184
- }
185
- .copy-box:hover {
186
- color: #165dff;
187
- background: #e8efff;
188
- }
189
- .copy-box:active {
190
- color: #1454e5;
191
- background: #e8efff;
192
- }
193
- }
1
+ .event-mi-table {
2
+ margin-top: 16px;
3
+ &-loading {
4
+ min-height: 300px;
5
+ }
6
+ &-table-header {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ height: 50px;
11
+ margin-bottom: -1px;
12
+ padding: 0 12px;
13
+ line-height: 50px;
14
+ background: #fafafb;
15
+ border: 1px solid #e6e7ea;
16
+ border-radius: 8px 8px 0 0;
17
+ > :nth-child(2) {
18
+ display: flex;
19
+ > :nth-child(1) {
20
+ margin-right: 16px;
21
+ }
22
+ div {
23
+ height: 32px;
24
+ padding: 0 16px;
25
+ line-height: 32px;
26
+ background: #fff;
27
+ border: 1px solid #f2f3f4;
28
+ border-radius: 4px;
29
+ cursor: pointer;
30
+ .xiazai1 {
31
+ margin-right: 4px;
32
+ font-size: 18px !important;
33
+ vertical-align: -2px;
34
+ }
35
+ }
36
+ div:hover {
37
+ color: #165dff;
38
+ background: #e8efff;
39
+ border: 1px solid #165dff;
40
+ }
41
+ div:active {
42
+ color: #1454e5;
43
+ background: #e8efff;
44
+ border: 1px solid #1454e5;
45
+ }
46
+ }
47
+ &-left {
48
+ display: flex;
49
+ flex: 1;
50
+ flex-direction: row;
51
+ overflow: hidden;
52
+ &-box {
53
+ display: flex;
54
+ flex: 1;
55
+ flex-direction: row;
56
+ overflow: hidden;
57
+ color: #67727f;
58
+ }
59
+ &-content {
60
+ display: flex;
61
+ flex: 1;
62
+ flex-direction: row;
63
+ overflow: hidden;
64
+ color: #67727f;
65
+ > span {
66
+ display: flex;
67
+ flex-direction: row;
68
+ max-width: 33.33%;
69
+ overflow: hidden;
70
+ :first-child {
71
+ overflow: hidden;
72
+ white-space: nowrap;
73
+ text-overflow: ellipsis;
74
+ }
75
+ :nth-child(2) {
76
+ flex: 1;
77
+ white-space: nowrap;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ .ant-table {
84
+ border-radius: 0 0 8px 8px;
85
+ }
86
+ .sourcepanel-table-header {
87
+ overflow: hidden;
88
+ border-radius: 8px 8px 0 0;
89
+ .ant-table {
90
+ max-height: none;
91
+ }
92
+ }
93
+ .ant-pagination {
94
+ margin-top: 24px !important;
95
+ }
96
+ .ant-table
97
+ .ant-table-thead
98
+ .ant-table-cell.ant-table-column-has-sorters
99
+ .ant-table-column-sorters {
100
+ justify-content: flex-end !important;
101
+ }
102
+ .ant-table-cell-with-append {
103
+ padding-left: 20px;
104
+ .ant-table-row-expand-icon {
105
+ position: absolute;
106
+ left: 0;
107
+ margin-top: 0;
108
+ }
109
+ }
110
+ .tooltip-userGroup-box {
111
+ display: flex;
112
+ max-width: 330px;
113
+ overflow: hidden;
114
+ white-space: nowrap;
115
+ text-overflow: ellipsis;
116
+ div {
117
+ max-width: 330px;
118
+ overflow: hidden;
119
+ white-space: nowrap;
120
+ text-overflow: ellipsis;
121
+ }
122
+ }
123
+ .tooltip-name-box {
124
+ display: flex;
125
+ &-market {
126
+ // max-width: calc(100% - 20px);
127
+ width: 180px;
128
+ margin-right: 8px;
129
+ overflow: hidden;
130
+ white-space: nowrap;
131
+ text-overflow: ellipsis;
132
+ cursor: pointer;
133
+ -webkit-line-clamp: 1;
134
+ -webkit-box-orient: vertical;
135
+ .shoucang {
136
+ color: #fd9f41;
137
+ font-size: 16px !important;
138
+ }
139
+ .notshoucang {
140
+ opacity: 0;
141
+ }
142
+ }
143
+
144
+ .fuzhi1 {
145
+ display: none;
146
+ font-size: 16px !important;
147
+ }
148
+ .fuzhi1:hover {
149
+ color: #165dff;
150
+ }
151
+ }
152
+ .tooltip-name-box:hover {
153
+ .fuzhi1 {
154
+ display: block;
155
+ }
156
+ }
157
+
158
+ &-table-empty {
159
+ img {
160
+ width: 50px !important;
161
+ height: auto;
162
+ margin-top: 30px;
163
+ margin-bottom: 10px;
164
+ }
165
+ p {
166
+ color: rgba(0, 0, 0, 0.25);
167
+ }
168
+ }
169
+
170
+ &-chart-box {
171
+ display: flex;
172
+ flex-direction: column;
173
+ width: 100%;
174
+ &-tooltip {
175
+ width: 200px;
176
+ margin-bottom: 24px;
177
+ color: #67727f;
178
+ font-size: 12px;
179
+ }
180
+ }
181
+ }
182
+ .event-table-sql-modal {
183
+ .ant-modal {
184
+ width: 720px !important;
185
+ }
186
+ .ant-modal-header {
187
+ position: relative;
188
+ z-index: 1;
189
+ height: 82px;
190
+ background: transparent;
191
+ }
192
+ .ant-modal-body {
193
+ padding: 0 24px 24px 24px;
194
+ }
195
+ .ant-modal-close-x {
196
+ margin-top: 13px;
197
+ margin-right: 8px;
198
+ }
199
+ img {
200
+ width: 100%;
201
+ }
202
+ .qingchu {
203
+ font-weight: 500;
204
+ font-size: 22px !important;
205
+ }
206
+ .modal-bg {
207
+ position: absolute;
208
+ top: 0;
209
+ left: 0;
210
+ width: 100%;
211
+ height: auto;
212
+ }
213
+ pre {
214
+ margin-bottom: 0;
215
+ }
216
+ .hljs {
217
+ height: 400px;
218
+ padding: 16px;
219
+ padding-bottom: 0;
220
+ background: #fafafb;
221
+ border-radius: 8px;
222
+ }
223
+ .copy-box {
224
+ position: absolute;
225
+ top: 98px;
226
+ right: 40px;
227
+ padding: 0 8px;
228
+ background: #f2f3f4;
229
+ border-radius: 4px;
230
+ .fuzhi1 {
231
+ margin-right: 8px;
232
+ }
233
+ }
234
+ .copy-box:hover {
235
+ color: #165dff;
236
+ background: #e8efff;
237
+ }
238
+ .copy-box:active {
239
+ color: #1454e5;
240
+ background: #e8efff;
241
+ }
242
+ }
243
+ .ant-modal-content {
244
+ position: relative;
245
+ .sql-tip {
246
+ position: absolute;
247
+ bottom: 30px;
248
+ }
249
+ }
@@ -6,6 +6,5 @@ export interface EventTableProps {
6
6
  showList: string[];
7
7
  isOverview?: boolean;
8
8
  changeShowByName: (name: string) => void;
9
- changeShow: (names: string[]) => void;
10
9
  onSelectEvent?: (id: number, name: string) => void;
11
10
  }
@@ -1,5 +1,10 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import './styles/index.less';
3
3
  import { TopBarProps } from './types';
4
+ export interface platItemProp {
5
+ key: number;
6
+ value: string;
7
+ icon?: ReactNode;
8
+ }
4
9
  declare const TopBar: React.FC<TopBarProps>;
5
10
  export default TopBar;