@zgfe/business-lib 1.0.12 → 1.0.13-alpha.2

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 (40) hide show
  1. package/es/assets/iconfont/demo_index.html +26 -3
  2. package/es/assets/iconfont/iconfont.css +7 -3
  3. package/es/assets/iconfont/iconfont.js +1 -1
  4. package/es/assets/iconfont/iconfont.json +7 -0
  5. package/es/assets/iconfont/iconfont.ttf +0 -0
  6. package/es/assets/iconfont/iconfont.woff +0 -0
  7. package/es/assets/iconfont/iconfont.woff2 +0 -0
  8. package/es/assets/styles/chunks.less +2 -2
  9. package/es/assets/styles/resetAntd.less +137 -133
  10. package/es/assets/styles/variable.less +1 -16
  11. package/es/assets/theme.d.ts +8 -1
  12. package/es/assets/theme.js +9 -2
  13. package/es/attrConditions/components/operateList.js +7 -2
  14. package/es/attrConditions/components/stringList.js +2 -3
  15. package/es/attrConditions/demo/group.js +1 -0
  16. package/es/attrConditions/demo/index.js +1 -0
  17. package/es/attrConditions/index.js +11 -5
  18. package/es/attrConditions/styles/index.less +2 -2
  19. package/es/attrConditions/types.d.ts +1 -0
  20. package/es/attributeSelector/index.js +3 -1
  21. package/es/attributeSelector/listPanel.js +2 -2
  22. package/es/attributeSelector/option.d.ts +2 -1
  23. package/es/attributeSelector/styles/index.less +1 -1
  24. package/es/attributeSelector/types.d.ts +5 -1
  25. package/es/attributeSelector/util.js +11 -6
  26. package/es/chart/util/chartOptionConfig.d.ts +1 -1
  27. package/es/chart/util/chartOptionConfig.js +3 -3
  28. package/es/config.d.ts +1 -1
  29. package/es/datePicker/styles/index.less +1 -1
  30. package/es/eventSelector/listPanel.js +1 -1
  31. package/es/mock/user.js +2 -2
  32. package/es/select/styles/index.less +1 -1
  33. package/es/targetConditionGroup/data/operates.js +0 -3
  34. package/es/targetSelector/editBox.js +2 -1
  35. package/es/targetSelector/styles/index.less +4 -0
  36. package/es/utils/ajax.d.ts +2 -32
  37. package/es/utils/ajax.js +8 -82
  38. package/es/utils/type.d.ts +33 -0
  39. package/es/utils/type.js +31 -1
  40. 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: @padding-xss @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 color(~`colorPalette('@{primary-color}', 0.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: color(~`colorPalette('@{primary-color}', 0.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: color(~`colorPalette('@{primary-color}', 0.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,64 @@
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-top: @padding-xs !important;
302
+ padding-bottom: 0 !important;
303
+ overflow: auto !important;
300
304
  }
301
305
  }
302
306
 
303
307
  // 分页
304
308
  .ant-pagination {
305
- margin: 0;
306
- margin-top: 20px;
309
+ margin: 0 !important;
310
+ margin-top: 20px !important;
307
311
 
308
312
  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
309
- border-radius: @border-radius-small;
313
+ border-radius: @border-radius-small!important;
310
314
  }
311
315
 
312
316
  .ant-pagination-item {
313
- color: @text-color-secondary;
314
- background: @background-color-base;
315
- border: none;
316
- border-radius: @border-radius-small;
317
+ color: @text-color-secondary!important;
318
+ background: @background-color-base!important;
319
+ border: none !important;
320
+ border-radius: @border-radius-small!important;
317
321
 
318
322
  &.ant-pagination-item-active {
319
- background: @primary-color;
323
+ background: @primary-color!important;
320
324
 
321
325
  a {
322
- color: @white;
326
+ color: @white!important;
323
327
  }
324
328
  }
325
329
 
326
330
  &:not(.ant-pagination-item-active):hover {
327
331
  a {
328
- color: @primary-color;
332
+ color: @primary-color!important;
329
333
  }
330
334
  }
331
335
  }
@@ -333,59 +337,59 @@
333
337
  .ant-pagination-prev,
334
338
  .ant-pagination-next {
335
339
  .ant-pagination-item-link {
336
- color: @text-color-secondary;
337
- background: @background-color-base;
338
- border: none;
339
- border-radius: @border-radius-small;
340
+ color: @text-color-secondary!important;
341
+ background: @background-color-base!important;
342
+ border: none !important;
343
+ border-radius: @border-radius-small!important;
340
344
  }
341
345
 
342
346
  &:not(.ant-pagination-disabled) .ant-pagination-item-link:hover {
343
- color: @primary-color;
347
+ color: @primary-color!important;
344
348
  }
345
349
  }
346
350
 
347
351
  .ant-pagination-options-quick-jumper input {
348
- border-radius: @border-radius-small;
352
+ border-radius: @border-radius-small!important;
349
353
  }
350
354
  }
351
355
 
352
356
  // 表格
353
357
  .ant-table {
354
- overflow: hidden;
355
- color: @text-color;
356
- border: 1px solid @border-color-base;
357
- border-radius: @border-radius-normal;
358
+ overflow: hidden !important;
359
+ color: @text-color!important;
360
+ border: 1px solid @border-color-base!important;
361
+ border-radius: @border-radius-normal!important;
358
362
 
359
363
  .ant-table-container {
360
364
  .ant-table-thead > tr > th {
361
- color: @text-color;
362
- line-height: 16px;
363
- background: @background-color-base;
364
- border: none;
365
+ color: @text-color!important;
366
+ line-height: 16px !important;
367
+ background: @background-color-base!important;
368
+ border: none !important;
365
369
 
366
370
  &::before {
367
371
  width: 0 !important;
368
372
  }
369
373
 
370
374
  &.ant-table-cell-fix-left-last {
371
- border-right: 1px solid @border-color-base;
375
+ border-right: 1px solid @border-color-base!important;
372
376
  }
373
377
  }
374
378
 
375
379
  .ant-table-tbody {
376
- color: @text-color-secondary;
380
+ color: @text-color-secondary!important;
377
381
  }
378
382
 
379
383
  .ant-table-tbody > tr:not(:last-child) > td {
380
- border-bottom: 1px solid @border-color-base;
384
+ border-bottom: 1px solid @border-color-base!important;
381
385
  }
382
386
 
383
387
  .ant-table-tbody > tr > td {
384
- line-height: 15px;
388
+ line-height: 15px !important;
385
389
 
386
390
  &.ant-table-cell-fix-left {
387
391
  &.ant-table-cell-fix-left-last {
388
- border-right: 1px solid @border-color-base;
392
+ border-right: 1px solid @border-color-base!important;
389
393
  }
390
394
  }
391
395
  }
@@ -393,47 +397,47 @@
393
397
 
394
398
  .ant-table-tbody > tr.ant-table-row:hover > td,
395
399
  .ant-table-tbody > tr > td.ant-table-cell-row-hover {
396
- background: @primary-1;
400
+ background: color(~`colorPalette('@{primary-color}', 0.1) `) !important;
397
401
  }
398
402
  }
399
403
 
400
404
  /* 提示框 */
401
405
  .ant-tooltip-inner {
402
- padding: @padding-sm @padding-md;
403
- border-radius: @border-radius-normal;
406
+ padding: @padding-sm @padding-md!important;
407
+ border-radius: @border-radius-normal!important;
404
408
  }
405
409
 
406
410
  .ant-form-item-label > label {
407
- color: @text-color-secondary;
411
+ color: @text-color-secondary!important;
408
412
  }
409
413
 
410
414
  .ant-btn {
411
- border-radius: @border-radius-small;
415
+ border-radius: @border-radius-small!important;
412
416
  }
413
417
 
414
418
  .ant-btn-text {
415
- background-color: @background-color-gray;
416
- border: none;
419
+ background-color: @background-color-gray!important;
420
+ border: none !important;
417
421
 
418
422
  &:hover {
419
- color: @text-color;
420
- background-color: @btn-text-hover-bg;
423
+ color: @text-color!important;
424
+ background-color: @btn-text-hover-bg!important;
421
425
  }
422
426
 
423
427
  &:focus {
424
- color: @text-color;
425
- background-color: #94a6ce;
428
+ color: @text-color!important;
429
+ background-color: #94a6ce !important;
426
430
  }
427
431
  }
428
432
 
429
433
  .ant-btn-primary {
430
- color: #fff;
434
+ color: #fff !important;
431
435
  }
432
436
 
433
437
  .ant-btn-ghost {
434
- color: @text-color-secondary;
438
+ color: @text-color-secondary!important;
435
439
  }
436
440
 
437
441
  .ant-form-item-explain-error {
438
- color: @error-color;
442
+ color: @error-color!important;
439
443
  }
@@ -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
- @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;
13
+ @box-shadow-form: 0 0 0 4px color(~`colorPalette('@{primary-color}', 0.1) `);
@@ -1,8 +1,15 @@
1
1
  declare const _default: {
2
2
  'primary-color': string;
3
3
  'border-color-base': string;
4
- 'primary-1': string;
4
+ 'background-color-base': string;
5
5
  'text-color': string;
6
6
  'text-color-secondary': string;
7
+ 'tooltip-bg': string;
8
+ 'error-color': string;
9
+ 'shadow-color': string;
10
+ 'box-shadow-base': string;
11
+ 'btn-text-hover-bg': string;
12
+ 'warning-color': string;
13
+ 'border-color-split': string;
7
14
  };
8
15
  export default _default;
@@ -1,7 +1,14 @@
1
1
  export default {
2
2
  'primary-color': '#165dff',
3
3
  'border-color-base': '#ECEDF0',
4
- 'primary-1': '#E8EFFF',
4
+ 'background-color-base': '#fafafb',
5
5
  'text-color': '#021429',
6
- 'text-color-secondary': '#5f6085'
6
+ 'text-color-secondary': '#5f6085',
7
+ 'tooltip-bg': '#242541',
8
+ 'error-color': '#fb5547',
9
+ 'shadow-color': 'rgba(0, 0, 0, 0.1)',
10
+ 'box-shadow-base': '0px 4px 10px rgba(0, 0, 0, 0.1)',
11
+ 'btn-text-hover-bg': '#cacdd4',
12
+ 'warning-color': '#FD9F41',
13
+ 'border-color-split': '#E8EFFF'
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
  }),