@zgfe/business-lib 1.0.11 → 1.0.13-alpha.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 (44) hide show
  1. package/es/addToPanel/components/styleList.js +3 -1
  2. package/es/addToPanel/demo/edit.js +1 -0
  3. package/es/addToPanel/index.js +37 -22
  4. package/es/addToPanel/types.d.ts +2 -1
  5. package/es/addToScene/index.js +4 -1
  6. package/es/assets/iconfont/demo_index.html +72 -3
  7. package/es/assets/iconfont/iconfont.css +15 -3
  8. package/es/assets/iconfont/iconfont.js +1 -1
  9. package/es/assets/iconfont/iconfont.json +21 -0
  10. package/es/assets/iconfont/iconfont.ttf +0 -0
  11. package/es/assets/iconfont/iconfont.woff +0 -0
  12. package/es/assets/iconfont/iconfont.woff2 +0 -0
  13. package/es/assets/styles/resetAntd.less +136 -133
  14. package/es/assets/styles/variable.less +0 -15
  15. package/es/assets/theme.d.ts +8 -1
  16. package/es/assets/theme.js +9 -2
  17. package/es/attrConditions/components/operateList.js +7 -2
  18. package/es/attrConditions/components/stringList.js +2 -3
  19. package/es/attrConditions/demo/group.js +1 -0
  20. package/es/attrConditions/demo/index.js +1 -0
  21. package/es/attrConditions/index.js +11 -5
  22. package/es/attrConditions/styles/index.less +2 -2
  23. package/es/attrConditions/types.d.ts +1 -0
  24. package/es/attributeSelector/index.js +3 -1
  25. package/es/attributeSelector/listPanel.js +2 -2
  26. package/es/attributeSelector/option.d.ts +2 -1
  27. package/es/attributeSelector/styles/index.less +1 -1
  28. package/es/attributeSelector/types.d.ts +5 -1
  29. package/es/attributeSelector/util.js +11 -6
  30. package/es/chart/util/chartOptionConfig.d.ts +1 -1
  31. package/es/chart/util/chartOptionConfig.js +3 -3
  32. package/es/config.d.ts +1 -1
  33. package/es/constants/apis.d.ts +1 -0
  34. package/es/constants/apis.js +1 -0
  35. package/es/eventSelector/listPanel.js +1 -1
  36. package/es/mock/user.js +2 -2
  37. package/es/targetConditionGroup/data/operates.js +0 -3
  38. package/es/targetSelector/editBox.js +2 -1
  39. package/es/targetSelector/styles/index.less +4 -0
  40. package/es/utils/ajax.d.ts +2 -32
  41. package/es/utils/ajax.js +8 -82
  42. package/es/utils/type.d.ts +33 -0
  43. package/es/utils/type.js +31 -1
  44. package/package.json +2 -2
@@ -4,89 +4,92 @@
4
4
 
5
5
  // 输入框(带icon)
6
6
  .ant-input-affix-wrapper {
7
- height: @height-lg;
8
- padding: 0 @padding-xs;
9
- line-height: @height-lg;
10
- background-color: @background-color-base;
11
- border-color: #fff;
12
- border-radius: @border-radius-small;
7
+ height: @height-lg!important;
8
+ padding: @padding-xss @padding-xs!important;
9
+ line-height: @height-lg!important;
10
+ background-color: @background-color-base!important;
11
+ border-color: #fff !important;
12
+ border-radius: @border-radius-small!important;
13
13
 
14
14
  .ant-input {
15
- background-color: @background-color-base;
15
+ background-color: @background-color-base!important;
16
16
  }
17
17
 
18
18
  &:hover {
19
- border-color: @primary-color;
19
+ border-color: @primary-color!important;
20
20
  }
21
21
 
22
22
  &.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless):not(.ant-input-affix-wrapper-focused).ant-input-affix-wrapper,
23
23
  &.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless):not(.ant-input-affix-wrapper-focused).ant-input-affix-wrapper:hover {
24
- background-color: @background-color-base;
24
+ background-color: @background-color-base!important;
25
25
  }
26
26
  }
27
27
 
28
28
  .ant-input-affix-wrapper-focused {
29
- background-color: #fff;
30
- border-color: @primary-color;
29
+ background-color: #fff !important;
30
+ border-color: @primary-color!important;
31
31
 
32
32
  .ant-input {
33
- background-color: #fff;
33
+ background-color: #fff !important;
34
34
  }
35
35
  }
36
36
 
37
37
  // 输入框
38
38
  .ant-input {
39
- background-color: @background-color-base;
40
- border-color: @background-color-base;
41
- border-radius: @border-radius-small;
39
+ background-color: @background-color-base!important;
40
+ border-color: @background-color-base!important;
41
+ border-radius: @border-radius-small!important;
42
42
 
43
43
  &:focus,
44
44
  &-focused {
45
- background-color: #fff;
46
- box-shadow: 0 0 0 4px @primary-1;
45
+ background-color: #fff !important;
46
+ box-shadow: 0 0 0 4px @primary-1!important;
47
+ }
48
+ &.ant-input-status-error {
49
+ border-color: @error-color !important;
47
50
  }
48
51
  }
49
52
 
50
53
  .ant-input-group-addon {
51
- color: @text-color-secondary;
52
- background-color: @background-color-base;
54
+ color: @text-color-secondary!important;
55
+ background-color: @background-color-base!important;
53
56
  }
54
57
 
55
58
  .ant-select-dropdown {
56
- .__select-panel();
59
+ .__select-panel() !important;
57
60
  }
58
61
 
59
62
  // 选择框下拉选项
60
63
  .ant-select-item {
61
- height: @height-lg;
62
- padding: 0 @padding-sm;
63
- border-radius: @border-radius-normal;
64
+ height: @height-lg!important;
65
+ padding: @padding-xs @padding-sm!important;
66
+ border-radius: @border-radius-normal!important;
64
67
 
65
68
  &:hover:not(.ant-select-item-option-disabled, .ant-select-item-option-selected) {
66
- .__default-hover();
69
+ .__default-hover() !important;
67
70
  }
68
71
 
69
72
  &.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
70
- color: #fff;
71
- font-weight: 400;
72
- background: @primary-color;
73
+ color: #fff !important;
74
+ font-weight: 400 !important;
75
+ background: @primary-color!important;
73
76
  }
74
77
  }
75
78
 
76
79
  .ant-dropdown-menu {
77
- .__select-panel();
80
+ .__select-panel() !important;
78
81
 
79
82
  .ant-dropdown-menu-item,
80
83
  .ant-dropdown-menu-submenu-title {
81
- .__select-option();
84
+ .__select-option() !important;
82
85
 
83
86
  &.active {
84
- color: #fff;
85
- background: @primary-color;
87
+ color: #fff !important;
88
+ background: @primary-color!important;
86
89
  }
87
90
 
88
91
  .ant-dropdown-menu-title-content {
89
- .__default-overflow();
92
+ .__default-overflow() !important;
90
93
  }
91
94
  }
92
95
 
@@ -94,19 +97,19 @@
94
97
  &.active,
95
98
  &.active:hover {
96
99
  .ant-dropdown-menu-submenu-title {
97
- background: @primary-color;
100
+ background: @primary-color!important;
98
101
 
99
102
  span {
100
- color: #fff;
103
+ color: #fff !important;
101
104
  }
102
105
  }
103
106
  }
104
107
 
105
108
  &.ant-dropdown-menu-submenu-active .ant-dropdown-menu-submenu-title {
106
- .__default-hover();
109
+ .__default-hover() !important;
107
110
 
108
111
  span {
109
- color: @primary-color;
112
+ color: @primary-color!important;
110
113
  }
111
114
  }
112
115
  }
@@ -116,49 +119,49 @@
116
119
 
117
120
  /*日历文本框*/
118
121
  .ant-picker {
119
- border-radius: @border-radius-small;
122
+ border-radius: @border-radius-small!important;
120
123
 
121
124
  span {
122
- color: @text-color-secondary;
125
+ color: @text-color-secondary!important;
123
126
  }
124
127
 
125
128
  .ant-picker-input > input {
126
- color: @text-color;
129
+ color: @text-color!important;
127
130
  }
128
131
 
129
132
  &:hover,
130
133
  &.ant-picker-focused {
131
- .__default-hover();
132
- border-color: @border-color-base;
133
- box-shadow: none;
134
+ .__default-hover() !important;
135
+ border-color: @border-color-base!important;
136
+ box-shadow: none !important;
134
137
 
135
138
  span,
136
139
  input {
137
- color: @primary-color;
140
+ color: @primary-color!important;
138
141
  }
139
142
  }
140
143
 
141
144
  .ant-picker-active-bar {
142
- display: none;
145
+ display: none !important;
143
146
  }
144
147
  }
145
148
 
146
149
  /*日历下拉框*/
147
150
  .ant-picker-dropdown {
148
151
  .ant-picker-cell {
149
- min-width: 30px;
150
- padding: 0;
152
+ min-width: 30px !important;
153
+ padding: 0 !important;
151
154
 
152
155
  &::before {
153
- height: 30px;
156
+ height: 30px !important;
154
157
  }
155
158
 
156
159
  /*禁止选择*/
157
160
  &.ant-picker-cell-disabled {
158
- color: @disabled-color;
161
+ color: @disabled-color!important;
159
162
 
160
163
  &::before {
161
- background: #fff;
164
+ background: #fff !important;
162
165
  }
163
166
  }
164
167
 
@@ -166,32 +169,32 @@
166
169
  &.ant-picker-cell-today {
167
170
  &.ant-picker-cell-selected {
168
171
  .ant-picker-cell-inner::before {
169
- background: #fff;
172
+ background: #fff !important;
170
173
  }
171
174
  }
172
175
 
173
176
  .ant-picker-cell-inner::before {
174
- position: absolute;
175
- top: auto;
176
- bottom: 4px;
177
- left: 50%;
178
- width: 6px;
179
- height: 1.5px;
180
- background: @primary-color;
181
- border: none;
182
- border-radius: 0.5px;
183
- transform: translateX(-50%);
184
- content: '';
177
+ position: absolute !important;
178
+ top: auto !important;
179
+ bottom: 4px !important;
180
+ left: 50% !important;
181
+ width: 6px !important;
182
+ height: 1.5px !important;
183
+ background: @primary-color!important;
184
+ border: none !important;
185
+ border-radius: 0.5px !important;
186
+ transform: translateX(-50%) !important;
187
+ content: '' !important;
185
188
  }
186
189
  }
187
190
 
188
191
  .ant-picker-cell-inner {
189
- min-width: 30px;
190
- height: 30px;
191
- line-height: 28px;
192
- text-align: center;
193
- border: 1px solid transparent;
194
- border-radius: @border-radius-large;
192
+ min-width: 30px !important;
193
+ height: 30px !important;
194
+ line-height: 28px !important;
195
+ text-align: center !important;
196
+ border: 1px solid transparent !important;
197
+ border-radius: @border-radius-large!important;
195
198
  }
196
199
 
197
200
  /*日期hover*/
@@ -199,8 +202,8 @@
199
202
  &:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,
200
203
  &:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end)
201
204
  .ant-picker-cell-inner {
202
- background-color: transparent;
203
- border: 1px solid @primary-color;
205
+ background-color: transparent !important;
206
+ border: 1px solid @primary-color!important;
204
207
  }
205
208
  }
206
209
  }
@@ -211,7 +214,7 @@
211
214
  .ant-picker-cell-inner,
212
215
  .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start)
213
216
  .ant-picker-cell-inner {
214
- border-radius: 50%;
217
+ border-radius: 50% !important;
215
218
  }
216
219
 
217
220
  /*日期范围每行最后一个和第一个添加border-radius*/
@@ -219,13 +222,13 @@
219
222
  .ant-picker-cell-in-view:not(.ant-picker-cell-selected) {
220
223
  &:first-child {
221
224
  &.ant-picker-cell-in-range::before {
222
- border-radius: @border-radius-small 0 0 @border-radius-small;
225
+ border-radius: @border-radius-small 0 0 @border-radius-small!important;
223
226
  }
224
227
  }
225
228
 
226
229
  &:last-child {
227
230
  &.ant-picker-cell-in-range::before {
228
- border-radius: 0 @border-radius-small @border-radius-small 0;
231
+ border-radius: 0 @border-radius-small @border-radius-small 0 !important;
229
232
  }
230
233
  }
231
234
  }
@@ -233,7 +236,7 @@
233
236
 
234
237
  /*日期范围内背景色*/
235
238
  .ant-picker-cell-in-range::before {
236
- background: @primary-1;
239
+ background: @primary-1!important;
237
240
  }
238
241
 
239
242
  /*日期范围内的hover效果-背景不变*/
@@ -248,7 +251,7 @@
248
251
  .ant-picker-panel
249
252
  > :not(.ant-picker-date-panel)
250
253
  .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end::before {
251
- background: @primary-1;
254
+ background: @primary-1!important;
252
255
  }
253
256
 
254
257
  /*日期范围内的hover效果*/
@@ -257,10 +260,10 @@
257
260
  .ant-picker-date-panel
258
261
  .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end {
259
262
  .ant-picker-cell-inner {
260
- border: 1px solid @primary-color;
263
+ border: 1px solid @primary-color!important;
261
264
 
262
265
  &::after {
263
- background-color: transparent;
266
+ background-color: transparent !important;
264
267
  }
265
268
  }
266
269
  }
@@ -269,63 +272,63 @@
269
272
  // 弹窗
270
273
 
271
274
  .ant-modal-content {
272
- border-radius: @border-radius-normal;
275
+ border-radius: @border-radius-normal!important;
273
276
 
274
277
  .ant-modal-footer {
275
- padding: 0 24px 24px 24px;
276
- border-top: none;
278
+ padding: 0 24px 24px 24px !important;
279
+ border-top: none !important;
277
280
 
278
281
  .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
279
- margin-left: 16px;
282
+ margin-left: 16px !important;
280
283
  }
281
284
  }
282
285
 
283
286
  .ant-modal-header {
284
- padding-top: 24px;
285
- border-bottom: none;
286
- border-radius: @border-radius-normal @border-radius-normal 0 0;
287
+ padding-top: 24px !important;
288
+ border-bottom: none !important;
289
+ border-radius: @border-radius-normal @border-radius-normal 0 0 !important;
287
290
 
288
291
  .ant-modal-title {
289
- color: #000;
290
- font-weight: 500;
291
- font-size: 24px;
292
- line-height: 24px;
292
+ color: #000 !important;
293
+ font-weight: 500 !important;
294
+ font-size: 24px !important;
295
+ line-height: 24px !important;
293
296
  }
294
297
  }
295
298
 
296
299
  .ant-modal-body {
297
- max-height: 400px;
298
- padding-bottom: 0;
299
- overflow: auto;
300
+ max-height: 400px !important;
301
+ padding-bottom: 0 !important;
302
+ overflow: auto !important;
300
303
  }
301
304
  }
302
305
 
303
306
  // 分页
304
307
  .ant-pagination {
305
- margin: 0;
306
- margin-top: 20px;
308
+ margin: 0 !important;
309
+ margin-top: 20px !important;
307
310
 
308
311
  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
309
- border-radius: @border-radius-small;
312
+ border-radius: @border-radius-small!important;
310
313
  }
311
314
 
312
315
  .ant-pagination-item {
313
- color: @text-color-secondary;
314
- background: @background-color-base;
315
- border: none;
316
- border-radius: @border-radius-small;
316
+ color: @text-color-secondary!important;
317
+ background: @background-color-base!important;
318
+ border: none !important;
319
+ border-radius: @border-radius-small!important;
317
320
 
318
321
  &.ant-pagination-item-active {
319
- background: @primary-color;
322
+ background: @primary-color!important;
320
323
 
321
324
  a {
322
- color: @white;
325
+ color: @white!important;
323
326
  }
324
327
  }
325
328
 
326
329
  &:not(.ant-pagination-item-active):hover {
327
330
  a {
328
- color: @primary-color;
331
+ color: @primary-color!important;
329
332
  }
330
333
  }
331
334
  }
@@ -333,59 +336,59 @@
333
336
  .ant-pagination-prev,
334
337
  .ant-pagination-next {
335
338
  .ant-pagination-item-link {
336
- color: @text-color-secondary;
337
- background: @background-color-base;
338
- border: none;
339
- border-radius: @border-radius-small;
339
+ color: @text-color-secondary!important;
340
+ background: @background-color-base!important;
341
+ border: none !important;
342
+ border-radius: @border-radius-small!important;
340
343
  }
341
344
 
342
345
  &:not(.ant-pagination-disabled) .ant-pagination-item-link:hover {
343
- color: @primary-color;
346
+ color: @primary-color!important;
344
347
  }
345
348
  }
346
349
 
347
350
  .ant-pagination-options-quick-jumper input {
348
- border-radius: @border-radius-small;
351
+ border-radius: @border-radius-small!important;
349
352
  }
350
353
  }
351
354
 
352
355
  // 表格
353
356
  .ant-table {
354
- overflow: hidden;
355
- color: @text-color;
356
- border: 1px solid @border-color-base;
357
- border-radius: @border-radius-normal;
357
+ overflow: hidden !important;
358
+ color: @text-color!important;
359
+ border: 1px solid @border-color-base!important;
360
+ border-radius: @border-radius-normal!important;
358
361
 
359
362
  .ant-table-container {
360
363
  .ant-table-thead > tr > th {
361
- color: @text-color;
362
- line-height: 16px;
363
- background: @background-color-base;
364
- border: none;
364
+ color: @text-color!important;
365
+ line-height: 16px !important;
366
+ background: @background-color-base!important;
367
+ border: none !important;
365
368
 
366
369
  &::before {
367
370
  width: 0 !important;
368
371
  }
369
372
 
370
373
  &.ant-table-cell-fix-left-last {
371
- border-right: 1px solid @border-color-base;
374
+ border-right: 1px solid @border-color-base!important;
372
375
  }
373
376
  }
374
377
 
375
378
  .ant-table-tbody {
376
- color: @text-color-secondary;
379
+ color: @text-color-secondary!important;
377
380
  }
378
381
 
379
382
  .ant-table-tbody > tr:not(:last-child) > td {
380
- border-bottom: 1px solid @border-color-base;
383
+ border-bottom: 1px solid @border-color-base!important;
381
384
  }
382
385
 
383
386
  .ant-table-tbody > tr > td {
384
- line-height: 15px;
387
+ line-height: 15px !important;
385
388
 
386
389
  &.ant-table-cell-fix-left {
387
390
  &.ant-table-cell-fix-left-last {
388
- border-right: 1px solid @border-color-base;
391
+ border-right: 1px solid @border-color-base!important;
389
392
  }
390
393
  }
391
394
  }
@@ -393,47 +396,47 @@
393
396
 
394
397
  .ant-table-tbody > tr.ant-table-row:hover > td,
395
398
  .ant-table-tbody > tr > td.ant-table-cell-row-hover {
396
- background: @primary-1;
399
+ background: @primary-1!important;
397
400
  }
398
401
  }
399
402
 
400
403
  /* 提示框 */
401
404
  .ant-tooltip-inner {
402
- padding: @padding-sm @padding-md;
403
- border-radius: @border-radius-normal;
405
+ padding: @padding-sm @padding-md!important;
406
+ border-radius: @border-radius-normal!important;
404
407
  }
405
408
 
406
409
  .ant-form-item-label > label {
407
- color: @text-color-secondary;
410
+ color: @text-color-secondary!important;
408
411
  }
409
412
 
410
413
  .ant-btn {
411
- border-radius: @border-radius-small;
414
+ border-radius: @border-radius-small!important;
412
415
  }
413
416
 
414
417
  .ant-btn-text {
415
- background-color: @background-color-gray;
416
- border: none;
418
+ background-color: @background-color-gray!important;
419
+ border: none !important;
417
420
 
418
421
  &:hover {
419
- color: @text-color;
420
- background-color: @btn-text-hover-bg;
422
+ color: @text-color!important;
423
+ background-color: @btn-text-hover-bg!important;
421
424
  }
422
425
 
423
426
  &:focus {
424
- color: @text-color;
425
- background-color: #94a6ce;
427
+ color: @text-color!important;
428
+ background-color: #94a6ce !important;
426
429
  }
427
430
  }
428
431
 
429
432
  .ant-btn-primary {
430
- color: #fff;
433
+ color: #fff !important;
431
434
  }
432
435
 
433
436
  .ant-btn-ghost {
434
- color: @text-color-secondary;
437
+ color: @text-color-secondary!important;
435
438
  }
436
439
 
437
440
  .ant-form-item-explain-error {
438
- color: @error-color;
441
+ color: @error-color!important;
439
442
  }
@@ -5,24 +5,9 @@
5
5
  @border-radius-normal: 8px;
6
6
  @border-radius-large: 20px;
7
7
  @option-height: @height-lg;
8
- @background-color-base: #fafafb;
9
8
  @background-color-gray: #f6f6f6;
10
9
  @icon-width: 24px;
11
10
 
12
- @shadow-color: rgba(0, 0, 0, 0.1);
13
11
  @shadow-color-light: rgba(0, 0, 0, 0.1);
14
- @box-shadow-base: 0px 4px 10px @shadow-color;
15
12
  @box-shadow-small: 0px 1px 2px @shadow-color-light;
16
13
  @box-shadow-form: 0 0 0 4px @primary-1;
17
-
18
- // 正文
19
- @text-color: #021429;
20
- // 次要
21
- @text-color-secondary: #5f6085;
22
- // 中性色/重要-文标题2
23
- @tooltip-bg: #242541;
24
- // 错误颜色
25
- @error-color: #fb5547;
26
-
27
- // text-btn hover背景色
28
- @btn-text-hover-bg: #cacdd4;
@@ -1,8 +1,15 @@
1
1
  declare const _default: {
2
2
  'primary-color': string;
3
- 'border-color-base': string;
4
3
  'primary-1': string;
4
+ 'border-color-base': string;
5
+ 'background-color-base': string;
5
6
  'text-color': string;
6
7
  'text-color-secondary': string;
8
+ 'tooltip-bg': string;
9
+ 'error-color': string;
10
+ 'shadow-color': string;
11
+ 'box-shadow-base': string;
12
+ 'btn-text-hover-bg': string;
13
+ 'warning-color': string;
7
14
  };
8
15
  export default _default;
@@ -1,7 +1,14 @@
1
1
  export default {
2
2
  'primary-color': '#165dff',
3
- 'border-color-base': '#ECEDF0',
4
3
  'primary-1': '#E8EFFF',
4
+ 'border-color-base': '#ECEDF0',
5
+ 'background-color-base': '#fafafb',
5
6
  'text-color': '#021429',
6
- 'text-color-secondary': '#5f6085'
7
+ 'text-color-secondary': '#5f6085',
8
+ 'tooltip-bg': '#242541',
9
+ 'error-color': '#fb5547',
10
+ 'shadow-color': 'rgba(0, 0, 0, 0.1)',
11
+ 'box-shadow-base': '0px 4px 10px rgba(0, 0, 0, 0.1)',
12
+ 'btn-text-hover-bg': '#cacdd4',
13
+ 'warning-color': '#FD9F41'
7
14
  };
@@ -20,7 +20,7 @@ var BizOperateList = function BizOperateList(props) {
20
20
  var _props$attr2;
21
21
 
22
22
  var _useState = useState({
23
- value: props.defaultValue
23
+ value: ''
24
24
  }),
25
25
  _useState2 = _slicedToArray(_useState, 2),
26
26
  current = _useState2[0],
@@ -39,7 +39,7 @@ var BizOperateList = function BizOperateList(props) {
39
39
  setOptions(optionData);
40
40
  var flag = true;
41
41
 
42
- if (current) {
42
+ if (current.value) {
43
43
  optionData.forEach(function (item) {
44
44
  if (item.value === current.value) {
45
45
  if (current.name && current.name === item.name) {
@@ -47,6 +47,11 @@ var BizOperateList = function BizOperateList(props) {
47
47
  }
48
48
  }
49
49
  });
50
+ } else if (props.defaultValue) {
51
+ setCurrent({
52
+ value: props.defaultValue
53
+ });
54
+ return;
50
55
  }
51
56
 
52
57
  if (!flag) return;
@@ -16,7 +16,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
 
17
17
  import React, { useContext, useEffect, useState } from 'react';
18
18
  import { classPrefix } from '..';
19
- import { PropCategory } from '../../attributeSelector/types';
20
19
  import Apis from '../../constants/apis';
21
20
  import BizGlobalDataContext from '../../context';
22
21
  import BizSelect from '../../select';
@@ -84,8 +83,8 @@ var StringList = function StringList(props) {
84
83
  app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
85
84
  platform: currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform,
86
85
  limit: 10000,
87
- attr: (attrData === null || attrData === void 0 ? void 0 : attrData.propCategory) === PropCategory.EventProp ? attrData.id : 0,
88
- dimension_sub: (attrData === null || attrData === void 0 ? void 0 : attrData.propCategory) === PropCategory.EventProp ? 'event_attr' : attrData === null || attrData === void 0 ? void 0 : attrData.name,
86
+ attr: (attrData === null || attrData === void 0 ? void 0 : attrData.id) || 0,
87
+ dimension_sub: attrData === null || attrData === void 0 ? void 0 : attrData.dimensionSub,
89
88
  v: ''
90
89
  };
91
90
 
@@ -18,6 +18,7 @@ import userData from '../../mock/user';
18
18
  import { Button } from 'antd';
19
19
  var conditions = [{
20
20
  propCategory: 'userProp',
21
+ attrId: 0,
21
22
  type: 2,
22
23
  operator: 'gt',
23
24
  values: ['25200', '1'],
@@ -29,6 +29,7 @@ export default (function () {
29
29
  values: ['25200', '1'],
30
30
  subtype: 2,
31
31
  attrName: 'duration',
32
+ attrId: 0,
32
33
  category: 'fixed'
33
34
  }
34
35
  }),