cnhis-design-vue 3.1.9-beta.1 → 3.1.9-beta.4

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 (61) hide show
  1. package/README.md +22 -22
  2. package/es/packages/big-table/index.d.ts +1 -1
  3. package/es/packages/big-table/src/BigTable.vue.d.ts +1 -1
  4. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.mjs +3 -1
  5. package/es/packages/big-table/style/index.less +557 -557
  6. package/es/packages/bpmn-workflow/style/index.less +29 -29
  7. package/es/packages/button-print/style/index.less +30 -30
  8. package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +4 -6
  9. package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -3
  10. package/es/packages/chunk-upload/style/index.less +394 -394
  11. package/es/packages/drag-layout/src/DragLayout.vue.d.ts +5 -8
  12. package/es/packages/drag-layout/style/index.less +208 -208
  13. package/es/packages/field-set/style/index.less +157 -157
  14. package/es/packages/form-render/index.d.ts +267 -3
  15. package/es/packages/form-render/index.mjs +2 -0
  16. package/es/packages/form-render/src/FormRender.vue.d.ts +267 -3
  17. package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.mjs +39 -25
  18. package/es/packages/form-render/src/components/cascader.d.ts +6 -2
  19. package/es/packages/form-render/src/components/cascader.mjs +12 -6
  20. package/es/packages/form-render/src/components/select.d.ts +12 -2
  21. package/es/packages/form-render/src/components/select.mjs +65 -29
  22. package/es/packages/form-render/src/constants/index.d.ts +4 -1
  23. package/es/packages/form-render/src/constants/index.mjs +3 -1
  24. package/es/packages/form-render/src/hooks/index.d.ts +11 -9
  25. package/es/packages/form-render/src/hooks/index.mjs +2 -0
  26. package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +13 -33
  27. package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +5 -3
  28. package/es/packages/form-render/src/hooks/useBusinessBinding.mjs +15 -15
  29. package/es/packages/form-render/src/hooks/useChangeContext.d.ts +11 -0
  30. package/es/packages/form-render/src/hooks/useChangeContext.mjs +21 -0
  31. package/es/packages/form-render/src/hooks/useFormField.d.ts +1 -0
  32. package/es/packages/form-render/src/hooks/useFormField.mjs +7 -1
  33. package/es/packages/form-render/src/hooks/useFormItemDeps.d.ts +8 -0
  34. package/es/packages/form-render/src/hooks/useFormItemDeps.mjs +29 -0
  35. package/es/packages/form-render/src/types/index.d.ts +16 -6
  36. package/es/packages/form-render/src/utils/index.d.ts +5 -3
  37. package/es/packages/form-render/src/utils/index.mjs +13 -1
  38. package/es/packages/form-table/style/index.less +301 -301
  39. package/es/packages/grid/style/index.less +12 -12
  40. package/es/packages/index.css +0 -3
  41. package/es/packages/index.less +2941 -2945
  42. package/es/packages/index.mjs +2 -0
  43. package/es/packages/info-header/index.d.ts +18 -2
  44. package/es/packages/info-header/src/HiddenContent.vue.d.ts +29 -13
  45. package/es/packages/info-header/src/HiddenContent.vue_vue_type_script_setup_true_lang.mjs +6 -4
  46. package/es/packages/info-header/src/InfoHeader.vue.d.ts +18 -2
  47. package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.mjs +10 -5
  48. package/es/packages/info-header/style/index.css +0 -3
  49. package/es/packages/info-header/style/index.less +149 -153
  50. package/es/packages/map/style/index.less +59 -59
  51. package/es/packages/scale-view/style/index.less +748 -748
  52. package/es/packages/select-label/src/LabelFormContent.vue.d.ts +0 -3
  53. package/es/packages/select-label/style/index.less +151 -151
  54. package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.mjs +1 -1
  55. package/es/packages/select-person/style/index.less +229 -229
  56. package/es/packages/time-line/style/index.less +34 -34
  57. package/es/src/types/index.d.ts +1 -0
  58. package/es/src/utils/anime.mjs +1 -1
  59. package/global.d.ts +8 -8
  60. package/package.json +1 -1
  61. package/yarn-error.log +8659 -103
@@ -1,748 +1,748 @@
1
- .c-choice-wrap {
2
- display: flex;
3
- flex-wrap: wrap;
4
- width: 100%;
5
- .scale-choice-img-wrap {
6
- display: inline-block;
7
- position: relative;
8
- width: 74px;
9
- min-width: 74px;
10
- height: 62px;
11
- background: #ffffff;
12
- border-radius: 4px;
13
- border: 1px solid #d5d5d5;
14
- margin-right: 16px;
15
- &:hover {
16
- .scale-preview-wrap {
17
- display: flex;
18
- }
19
- }
20
- > img {
21
- width: 100%;
22
- height: 100%;
23
- object-fit: cover;
24
- }
25
- .scale-preview-wrap {
26
- position: absolute;
27
- top: 0;
28
- left: 0;
29
- right: 0;
30
- bottom: 0;
31
- display: none;
32
- justify-content: center;
33
- align-items: center;
34
- background: rgba(0, 0, 0, 0.75);
35
- border-radius: 8px;
36
- font-size: 20px;
37
- i.anticon {
38
- color: #fff;
39
- margin: 0px;
40
- }
41
- }
42
- }
43
- .presuffix-wrap {
44
- display: inline-flex;
45
- align-items: center;
46
- width: 100%;
47
- white-space: normal;
48
- }
49
- .n-input {
50
- flex: 1;
51
- max-width: 300px;
52
- border-bottom: 1px solid #d9d9d9;
53
- }
54
- &.choice-wrap-1 label {
55
- width: 100%;
56
- .n-input {
57
- max-width: 300px;
58
- }
59
- }
60
- &.choice-wrap-2 label {
61
- width: 50%;
62
- }
63
- &.choice-wrap-3 label {
64
- width: 33%;
65
- }
66
- &.choice-wrap-4 label {
67
- width: 25%;
68
- }
69
-
70
- }
71
-
72
- .c-choice-wrap {
73
- label {
74
- display: inline-flex;
75
- align-items: center;
76
- margin: 4px 0;
77
- :deep(.n-radio__label) {
78
- flex: 1;
79
- display: inline-flex;
80
- align-items: center;
81
- white-space: normal;
82
- }
83
- }
84
- > :deep(.n-checkbox) {
85
- display: inline-flex;
86
- align-items: center;
87
- margin: 4px 0;
88
- .n-checkbox__label {
89
- flex: 1;
90
- display: inline-flex;
91
- align-items: center;
92
- white-space: normal;
93
- }
94
- }
95
- &.choice-wrap-1 .n-checkbox {
96
- width: 100%;
97
- .n-input {
98
- max-width: 300px;
99
- }
100
- }
101
- &.choice-wrap-2 .n-checkbox {
102
- width: 50%;
103
- }
104
- &.choice-wrap-3 .n-checkbox {
105
- width: 33%;
106
- }
107
- &.choice-wrap-4 .n-checkbox {
108
- width: 25%;
109
- }
110
- }
111
- .c-scale {
112
- position: relative;
113
- width: 100%;
114
- height: 100%;
115
- overflow: hidden;
116
- text-align: left;
117
- padding-top: 4px;
118
- padding-bottom: 50px;
119
- box-sizing: border-box;
120
- color: rgba(0, 0, 0, 0.65);
121
- :deep(.n-form-item-label) {
122
- font-weight: 700;
123
- }
124
- .scale-container {
125
- width: 100%;
126
- height: 100%;
127
- padding-bottom: 10px;
128
- transform-origin: 0 0;
129
- overflow-y: auto;
130
- box-sizing: border-box;
131
- &.scale-container-nopadding {
132
- height: 100%;
133
- }
134
- &::-webkit-scrollbar {
135
- width: 10px;
136
- height: 6px;
137
- background-color: #f5f5f5;
138
- }
139
-
140
- /*定义滚动条轨道 内阴影+圆角*/
141
- &::-webkit-scrollbar-track {
142
- border-radius: 10px;
143
- background-color: #f2f2f2;
144
- }
145
-
146
- /*定义滑块 内阴影+圆角*/
147
- &::-webkit-scrollbar-thumb {
148
- border-radius: 10px;
149
- background-color: #dbdcdc;
150
- }
151
- }
152
- :deep(.no-data-tip) {
153
- width: 100%;
154
- height: 100%;
155
- }
156
-
157
- .lb-title {
158
- text-align: center;
159
- }
160
- .map-container {
161
- cursor: pointer;
162
- }
163
- .linebar-div {
164
- text-align: center;
165
- margin-top: 24px;
166
- }
167
- .my-prompt {
168
- padding: 10px;
169
- box-shadow: 0 5px 13px rgba(0, 0, 0, 0.14);
170
- background-color: #fff;
171
- border-radius: 4px;
172
- }
173
- .img-card {
174
- width: 100%;
175
- }
176
- }
177
- .main {
178
- padding: 0 16px;
179
- box-sizing: border-box;
180
- .scale-label-required {
181
- font-weight: 700;
182
- }
183
- .required-text {
184
- color: #e02828;
185
- }
186
- .evalute-label {
187
- display: inline-block;
188
- height: 20px;
189
- line-height: 20px;
190
- padding: 0 5px;
191
- margin-left: 4px;
192
- font-size: 12px;
193
- color: #2d7aff;
194
- border-radius: 4px;
195
- border: 1px solid rgba(45, 122, 255, 0.5);
196
- background: rgba(45, 122, 255, 0.1);
197
- }
198
- .evalute-tip {
199
- display: inline-block;
200
- padding: 0 5px;
201
- margin-left: 8px;
202
- color: #fe9626;
203
- border-radius: 2px;
204
- background: rgba(255, 194, 0, 0.15);
205
- cursor: pointer;
206
- }
207
- }
208
- .footer {
209
- position: absolute;
210
- bottom: 0;
211
- left: 0;
212
- width: 100%;
213
- border-top: 1px solid #e8e8e8;
214
- padding-top: 12px;
215
- height: 50px;
216
- box-sizing: border-box;
217
- background: #fff;
218
- .n-button + .n-button {
219
- margin-left: 8px;
220
- }
221
- }
222
- .rich-text-content {
223
- word-break: break-all;
224
- :deep(p) {
225
- margin-bottom: 0;
226
- }
227
- :deep(img) {
228
- max-width: 100%;
229
- }
230
- }
231
- .n-dialog.n-modal {
232
- &.c-evatip-dialog-wrap {
233
- width: 494px !important;
234
- padding: 0;
235
- max-height: unset;
236
- overflow-y: hidden;
237
- .n-dialog__title {
238
- height: 52px;
239
- line-height: 52px;
240
- padding-left: 16px;
241
- font-weight: 600;
242
- border-bottom: 1px solid #e8e8e8;
243
- }
244
- .n-base-icon {
245
- position: absolute;
246
- right: 16px;
247
- top: 16px;
248
- margin: 0;
249
- color: #666666;
250
- }
251
- .n-dialog__content {
252
- margin: 0;
253
- }
254
- .evatip-container {
255
- min-height: 100px;
256
- max-height: 60vh;
257
- overflow-y: auto;
258
- padding: 26px 16px;
259
- font-size: 16px;
260
- color: #2e2e2e;
261
- p {
262
- padding: 16px;
263
- margin-top: 12px;
264
- margin-bottom: 0;
265
- font-size: 14px;
266
- border-radius: 4px;
267
- border: 1px solid rgba(213, 213, 213, 0.6);
268
- }
269
- }
270
- .n-dialog__action {
271
- display: block;
272
- width: 100%;
273
- padding: 10px 16px;
274
- text-align: right;
275
- border-top: 1px solid #e8e8e8;
276
- box-sizing: border-box;
277
- }
278
- }
279
- }
280
- .c-answerParse {
281
- padding: 16px;
282
- color: #2e2e2e;
283
- border-radius: 8px;
284
- background: rgba(253, 246, 246, 0.6);
285
- margin-top: 6px;
286
- margin-bottom: 12px;
287
- .answer-res-wrap {
288
- display: flex;
289
- justify-content: space-between;
290
- align-items: center;
291
- margin-bottom: 16px;
292
- .answer-res {
293
- display: inline-flex;
294
- align-items: center;
295
- padding: 0 18px;
296
- line-height: 36px;
297
- color: #fff;
298
- background: #f06f64;
299
- border-radius: 18px;
300
- font-weight: 700;
301
- svg {
302
- margin-right: 8px;
303
- font-size: 16px;
304
- }
305
- }
306
- .answer-score {
307
- font-size: 14px;
308
- font-weight: 600;
309
- color: #2e2e2e;
310
- }
311
- }
312
- .correct-answer {
313
- line-height: 20px;
314
- margin-bottom: 16px;
315
- p {
316
- font-weight: 700;
317
- display: inline-block;
318
- }
319
- span {
320
- word-break: break-all;
321
- color: #91c850;
322
- font-size: 16px;
323
- }
324
- }
325
- .answer-key {
326
- line-height: 20px;
327
- p {
328
- font-weight: 700;
329
- line-height: 20px;
330
- margin-bottom: 16px;
331
- }
332
- span {
333
- word-break: break-all;
334
- }
335
- }
336
- &.answerParse-success {
337
- background: rgba(234, 251, 228, 0.6);
338
- .answer-res {
339
- background: #91c850;
340
- }
341
- }
342
- }
343
- .c-evaluateCountdown {
344
- position: absolute;
345
- top: 0;
346
- right: 0;
347
- min-width: 166px;
348
- padding: 8px 12px;
349
- background: #f2f2f4;
350
- border-radius: 8px;
351
- color: #212121;
352
- z-index: 1;
353
- text-align: center;
354
- &.evaluateCountdown-hasTime {
355
- &:hover {
356
- padding: 8px 32px;
357
- background: #f1f1f4;
358
- .countdown {
359
- line-height: 40px;
360
- font-size: 26px;
361
- span {
362
- line-height: unset;
363
- }
364
- svg {
365
- display: none;
366
- }
367
- }
368
- .answered-wrap {
369
- display: block;
370
- }
371
- }
372
- .answered-wrap {
373
- display: none;
374
- }
375
- }
376
- .countdown {
377
- display: flex;
378
- align-content: center;
379
- justify-content: center;
380
- font-size: 14px;
381
- color: #000000;
382
- span {
383
- line-height: 18px;
384
- }
385
- svg {
386
- margin-left: 8px;
387
- font-size: 16px;
388
- color: #969696;
389
- }
390
- &.countdown-red {
391
- color: #ff1818;
392
- }
393
- }
394
- .answered-wrap {
395
- span {
396
- color: #2d7aff;
397
- }
398
- }
399
- }
400
- .c-evaluate-page {
401
- display: flex;
402
- align-items: center;
403
- justify-content: center;
404
- width: 100%;
405
- height: 100%;
406
- .evaluate-container {
407
- width: 620px;
408
- padding: 45px 32px;
409
- text-align: center;
410
- border-radius: 15px;
411
- border: 1px solid #e0e0e0;
412
- .evaluate-name {
413
- font-size: 20px;
414
- color: #212121;
415
- line-height: 28px;
416
- margin-bottom: 10px;
417
- max-height: 88px;
418
- overflow-y: auto;
419
- word-break: break-all;
420
- }
421
- .evaluate-explain {
422
- padding: 12px 22px 12px 30px;
423
- margin-bottom: 24px;
424
- text-align: left;
425
- border-radius: 8px;
426
- background: #f2f2f4;
427
- overflow: hidden;
428
- > div {
429
- padding-right: 8px;
430
- max-height: 206px;
431
- overflow-y: auto;
432
- word-break: break-all;
433
- }
434
- }
435
- .evaluate-score {
436
- display: flex;
437
- margin-bottom: 24px;
438
- li + li {
439
- border-left: 1px solid rgba(213, 213, 213, 0.6);
440
- }
441
- li {
442
- flex: 1;
443
- div {
444
- line-height: 50px;
445
- font-size: 36px;
446
- color: #000000;
447
- }
448
- span {
449
- line-height: 20px;
450
- font-size: 14px;
451
- color: rgba(0, 0, 0, 0.6);
452
- }
453
- }
454
- }
455
- .evaluate-time-range {
456
- font-size: 14px;
457
- color: #000000;
458
- line-height: 20px;
459
- margin-bottom: 20px;
460
- }
461
-
462
- .evaluate-btn {
463
- width: 380px;
464
- height: unset;
465
- padding: 16px 0;
466
- text-align: center;
467
- font-size: 18px;
468
- color: #ffffff;
469
- border-radius: 8px;
470
- }
471
- }
472
- }
473
- .c-totalScore-warp {
474
- padding: 16px;
475
- margin-bottom: 16px;
476
- font-weight: 400;
477
- color: #666666;
478
- background: #f2f2f4;
479
- font-size: 14px;
480
- border-radius: 6px;
481
- div + div {
482
- margin-top: 4px;
483
- }
484
- span {
485
- font-weight: 500;
486
- color: #090909;
487
- }
488
- .score-result {
489
- color: #2d7aff;
490
- }
491
- }
492
- .text-over-tooltip-components {
493
- display: inline-block;
494
- max-width: 98%;
495
- /* 文字超出宽度显示省略号 单行 */
496
-
497
- .ellipsis {
498
- font-size: 14px;
499
- color: #35393c;
500
- overflow: hidden;
501
- text-overflow: ellipsis;
502
- white-space: nowrap;
503
-
504
- i {
505
- font-style: normal;
506
- word-break: keep-all;
507
- white-space: nowrap;
508
- }
509
- }
510
-
511
- /* 自定义样式 */
512
-
513
- .fs20 {
514
- font-size: 20px;
515
- font-weight: 600;
516
- color: green;
517
- line-height: 22px;
518
- }
519
-
520
- .fs12 {
521
- font-size: 12px;
522
- font-weight: 400;
523
- color: orange;
524
- line-height: 14px;
525
- }
526
- }
527
-
528
-
529
- .c-scale {
530
- ul,li {
531
- list-style: none;
532
- margin: 0;
533
- padding: 0;
534
- }
535
- .n-input {
536
- width: 100%;
537
- text-align: left;
538
- }
539
- }
540
-
541
- .no-data-tip {
542
- display: flex;
543
- flex-direction: column;
544
- justify-content: center;
545
- align-items: center;
546
- width: 100%;
547
- height: 100%;
548
- color: #333333;
549
- font-size: 22px;
550
- > img {
551
- max-width: 70%;
552
- width: 260px;
553
- }
554
- > p {
555
- margin-top: 12px;
556
- margin-bottom: 0;
557
- font-size: 16px;
558
- color: rgba(0, 0, 0, 0.8);
559
- }
560
- > span {
561
- font-size: 14px;
562
- color: rgba(0, 0, 0, 0.4);
563
- margin-top: 6px;
564
- }
565
- }
566
-
567
- .c-scale-address {
568
- max-width: 500px;
569
- .field-row {
570
- width: 100%;
571
- display: flex;
572
- overflow: hidden;
573
- .n-select {
574
- flex: 1;
575
- width: 100%;
576
- padding: 0 5px 5px 0;
577
- &:last-child {
578
- padding-right: 0;
579
- }
580
- }
581
- }
582
- }
583
-
584
- .c-scale-collection {
585
- width: 100%;
586
- .img-card {
587
- width: 100%;
588
- }
589
- &.scale-collection-title {
590
- text-align: center;
591
- h1 {
592
- font-weight: 500;
593
- }
594
- }
595
- &.prompt-message {
596
- position: relative;
597
- padding: 10px;
598
- box-shadow: 0 5px 13px rgb(0 0 0 / 14%);
599
- background-color: #fff;
600
- border-radius: 4px;
601
- color: #666;
602
- &.is-weak {
603
- color: #999;
604
- }
605
- &.is-strong {
606
- color: #ff1818;
607
- padding: 1px 0 0 35px;
608
- }
609
- .prompt-icon {
610
- font-size: 18px;
611
- position: absolute;
612
- left: 0;
613
- top: 0;
614
- }
615
- .prompt-message-content {
616
- line-height: 16px;
617
- font-size: 14px;
618
- }
619
- }
620
- }
621
-
622
- .c-time-range {
623
- display: flex;
624
- align-items: center;
625
- }
626
-
627
- .c-map-container {
628
- width: 100%;
629
- cursor: pointer;
630
- :deep(.n-input.map-input) {
631
- .n-input__prefix {
632
- transform: rotate(180deg);
633
- .n-icon {
634
- color: rgba(0, 0, 0, 0.65);
635
- }
636
- }
637
- &.n-input--disabled .n-input__input-el {
638
- color: rgba(0, 0, 0, 0.65);
639
- background-color: #fff;
640
- cursor: pointer;
641
- }
642
- }
643
- }
644
-
645
- .c-scale-map-modal .n-card__content {
646
- overflow: hidden;
647
- }
648
-
649
- .c-scale-upload {
650
- width: 100%;
651
- :deep(.n-upload-file-list) {
652
- display: flex;
653
- .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type {
654
- box-sizing: border-box;
655
- background: rgba(0, 0, 0, 0.5);
656
- span.n-button__icon {
657
- color: #fff;
658
-
659
- }
660
- }
661
- .n-upload-trigger.n-upload-trigger--image-card {
662
- width: 184px;
663
- height: 184px;
664
- border-color: #d5d5d5;
665
- background-color: #fafafa;
666
- }
667
- .n-upload-file.n-upload-file--image-card-type {
668
- width: 184px;
669
- height: 184px;
670
- padding: 8px;
671
- border-color: #d5d5d5;
672
- background-color: #fafafa;
673
- .n-image {
674
- height: 100%;
675
- }
676
- img {
677
- object-fit: cover !important;
678
- }
679
- }
680
- }
681
- .upload-img-wrap {
682
- display: flex;
683
- flex-direction: column;
684
- align-items: center;
685
- }
686
-
687
- .dragger-upload-text {
688
- display: flex;
689
- align-items: center;
690
- }
691
- &.scale-upload-file {
692
- .n-upload-dragger {
693
- padding: 16px 0;
694
- }
695
- .n-upload {
696
- opacity: 1 !important;
697
- --n-item-disabled-opacity: 1 !important;
698
- }
699
- .dragger-upload-text {
700
- color: rgba(0, 0, 0, 0.65)
701
- }
702
- :deep(.n-upload-file-list) {
703
- display: flex;
704
- flex-direction: column;
705
- width: 100%;
706
- .n-upload-file {
707
- width: 100%;
708
- }
709
-
710
- }
711
- :deep(.n-upload-trigger) {
712
- width: 100%;
713
- background: #fafafa;
714
- border-color: #d5d5d5;
715
- }
716
- }
717
- }
718
-
719
- .text-over-tooltip-components {
720
- display: inline-block;
721
- max-width: 98%;
722
- /* 文字超出宽度显示省略号 单行 */
723
- .ellipsis {
724
- font-size: 14px;
725
- color: #35393c;
726
- overflow: hidden;
727
- text-overflow: ellipsis;
728
- white-space: nowrap;
729
- i {
730
- font-style: normal;
731
- word-break: keep-all;
732
- white-space: nowrap;
733
- }
734
- }
735
- /* 自定义样式 */
736
- .fs20 {
737
- font-size: 20px;
738
- font-weight: 600;
739
- color: green;
740
- line-height: 22px;
741
- }
742
- .fs12 {
743
- font-size: 12px;
744
- font-weight: 400;
745
- color: orange;
746
- line-height: 14px;
747
- }
748
- }
1
+ .c-choice-wrap {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ width: 100%;
5
+ .scale-choice-img-wrap {
6
+ display: inline-block;
7
+ position: relative;
8
+ width: 74px;
9
+ min-width: 74px;
10
+ height: 62px;
11
+ background: #ffffff;
12
+ border-radius: 4px;
13
+ border: 1px solid #d5d5d5;
14
+ margin-right: 16px;
15
+ &:hover {
16
+ .scale-preview-wrap {
17
+ display: flex;
18
+ }
19
+ }
20
+ > img {
21
+ width: 100%;
22
+ height: 100%;
23
+ object-fit: cover;
24
+ }
25
+ .scale-preview-wrap {
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ right: 0;
30
+ bottom: 0;
31
+ display: none;
32
+ justify-content: center;
33
+ align-items: center;
34
+ background: rgba(0, 0, 0, 0.75);
35
+ border-radius: 8px;
36
+ font-size: 20px;
37
+ i.anticon {
38
+ color: #fff;
39
+ margin: 0px;
40
+ }
41
+ }
42
+ }
43
+ .presuffix-wrap {
44
+ display: inline-flex;
45
+ align-items: center;
46
+ width: 100%;
47
+ white-space: normal;
48
+ }
49
+ .n-input {
50
+ flex: 1;
51
+ max-width: 300px;
52
+ border-bottom: 1px solid #d9d9d9;
53
+ }
54
+ &.choice-wrap-1 label {
55
+ width: 100%;
56
+ .n-input {
57
+ max-width: 300px;
58
+ }
59
+ }
60
+ &.choice-wrap-2 label {
61
+ width: 50%;
62
+ }
63
+ &.choice-wrap-3 label {
64
+ width: 33%;
65
+ }
66
+ &.choice-wrap-4 label {
67
+ width: 25%;
68
+ }
69
+
70
+ }
71
+
72
+ .c-choice-wrap {
73
+ label {
74
+ display: inline-flex;
75
+ align-items: center;
76
+ margin: 4px 0;
77
+ :deep(.n-radio__label) {
78
+ flex: 1;
79
+ display: inline-flex;
80
+ align-items: center;
81
+ white-space: normal;
82
+ }
83
+ }
84
+ > :deep(.n-checkbox) {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ margin: 4px 0;
88
+ .n-checkbox__label {
89
+ flex: 1;
90
+ display: inline-flex;
91
+ align-items: center;
92
+ white-space: normal;
93
+ }
94
+ }
95
+ &.choice-wrap-1 .n-checkbox {
96
+ width: 100%;
97
+ .n-input {
98
+ max-width: 300px;
99
+ }
100
+ }
101
+ &.choice-wrap-2 .n-checkbox {
102
+ width: 50%;
103
+ }
104
+ &.choice-wrap-3 .n-checkbox {
105
+ width: 33%;
106
+ }
107
+ &.choice-wrap-4 .n-checkbox {
108
+ width: 25%;
109
+ }
110
+ }
111
+ .c-scale {
112
+ position: relative;
113
+ width: 100%;
114
+ height: 100%;
115
+ overflow: hidden;
116
+ text-align: left;
117
+ padding-top: 4px;
118
+ padding-bottom: 50px;
119
+ box-sizing: border-box;
120
+ color: rgba(0, 0, 0, 0.65);
121
+ :deep(.n-form-item-label) {
122
+ font-weight: 700;
123
+ }
124
+ .scale-container {
125
+ width: 100%;
126
+ height: 100%;
127
+ padding-bottom: 10px;
128
+ transform-origin: 0 0;
129
+ overflow-y: auto;
130
+ box-sizing: border-box;
131
+ &.scale-container-nopadding {
132
+ height: 100%;
133
+ }
134
+ &::-webkit-scrollbar {
135
+ width: 10px;
136
+ height: 6px;
137
+ background-color: #f5f5f5;
138
+ }
139
+
140
+ /*定义滚动条轨道 内阴影+圆角*/
141
+ &::-webkit-scrollbar-track {
142
+ border-radius: 10px;
143
+ background-color: #f2f2f2;
144
+ }
145
+
146
+ /*定义滑块 内阴影+圆角*/
147
+ &::-webkit-scrollbar-thumb {
148
+ border-radius: 10px;
149
+ background-color: #dbdcdc;
150
+ }
151
+ }
152
+ :deep(.no-data-tip) {
153
+ width: 100%;
154
+ height: 100%;
155
+ }
156
+
157
+ .lb-title {
158
+ text-align: center;
159
+ }
160
+ .map-container {
161
+ cursor: pointer;
162
+ }
163
+ .linebar-div {
164
+ text-align: center;
165
+ margin-top: 24px;
166
+ }
167
+ .my-prompt {
168
+ padding: 10px;
169
+ box-shadow: 0 5px 13px rgba(0, 0, 0, 0.14);
170
+ background-color: #fff;
171
+ border-radius: 4px;
172
+ }
173
+ .img-card {
174
+ width: 100%;
175
+ }
176
+ }
177
+ .main {
178
+ padding: 0 16px;
179
+ box-sizing: border-box;
180
+ .scale-label-required {
181
+ font-weight: 700;
182
+ }
183
+ .required-text {
184
+ color: #e02828;
185
+ }
186
+ .evalute-label {
187
+ display: inline-block;
188
+ height: 20px;
189
+ line-height: 20px;
190
+ padding: 0 5px;
191
+ margin-left: 4px;
192
+ font-size: 12px;
193
+ color: #2d7aff;
194
+ border-radius: 4px;
195
+ border: 1px solid rgba(45, 122, 255, 0.5);
196
+ background: rgba(45, 122, 255, 0.1);
197
+ }
198
+ .evalute-tip {
199
+ display: inline-block;
200
+ padding: 0 5px;
201
+ margin-left: 8px;
202
+ color: #fe9626;
203
+ border-radius: 2px;
204
+ background: rgba(255, 194, 0, 0.15);
205
+ cursor: pointer;
206
+ }
207
+ }
208
+ .footer {
209
+ position: absolute;
210
+ bottom: 0;
211
+ left: 0;
212
+ width: 100%;
213
+ border-top: 1px solid #e8e8e8;
214
+ padding-top: 12px;
215
+ height: 50px;
216
+ box-sizing: border-box;
217
+ background: #fff;
218
+ .n-button + .n-button {
219
+ margin-left: 8px;
220
+ }
221
+ }
222
+ .rich-text-content {
223
+ word-break: break-all;
224
+ :deep(p) {
225
+ margin-bottom: 0;
226
+ }
227
+ :deep(img) {
228
+ max-width: 100%;
229
+ }
230
+ }
231
+ .n-dialog.n-modal {
232
+ &.c-evatip-dialog-wrap {
233
+ width: 494px !important;
234
+ padding: 0;
235
+ max-height: unset;
236
+ overflow-y: hidden;
237
+ .n-dialog__title {
238
+ height: 52px;
239
+ line-height: 52px;
240
+ padding-left: 16px;
241
+ font-weight: 600;
242
+ border-bottom: 1px solid #e8e8e8;
243
+ }
244
+ .n-base-icon {
245
+ position: absolute;
246
+ right: 16px;
247
+ top: 16px;
248
+ margin: 0;
249
+ color: #666666;
250
+ }
251
+ .n-dialog__content {
252
+ margin: 0;
253
+ }
254
+ .evatip-container {
255
+ min-height: 100px;
256
+ max-height: 60vh;
257
+ overflow-y: auto;
258
+ padding: 26px 16px;
259
+ font-size: 16px;
260
+ color: #2e2e2e;
261
+ p {
262
+ padding: 16px;
263
+ margin-top: 12px;
264
+ margin-bottom: 0;
265
+ font-size: 14px;
266
+ border-radius: 4px;
267
+ border: 1px solid rgba(213, 213, 213, 0.6);
268
+ }
269
+ }
270
+ .n-dialog__action {
271
+ display: block;
272
+ width: 100%;
273
+ padding: 10px 16px;
274
+ text-align: right;
275
+ border-top: 1px solid #e8e8e8;
276
+ box-sizing: border-box;
277
+ }
278
+ }
279
+ }
280
+ .c-answerParse {
281
+ padding: 16px;
282
+ color: #2e2e2e;
283
+ border-radius: 8px;
284
+ background: rgba(253, 246, 246, 0.6);
285
+ margin-top: 6px;
286
+ margin-bottom: 12px;
287
+ .answer-res-wrap {
288
+ display: flex;
289
+ justify-content: space-between;
290
+ align-items: center;
291
+ margin-bottom: 16px;
292
+ .answer-res {
293
+ display: inline-flex;
294
+ align-items: center;
295
+ padding: 0 18px;
296
+ line-height: 36px;
297
+ color: #fff;
298
+ background: #f06f64;
299
+ border-radius: 18px;
300
+ font-weight: 700;
301
+ svg {
302
+ margin-right: 8px;
303
+ font-size: 16px;
304
+ }
305
+ }
306
+ .answer-score {
307
+ font-size: 14px;
308
+ font-weight: 600;
309
+ color: #2e2e2e;
310
+ }
311
+ }
312
+ .correct-answer {
313
+ line-height: 20px;
314
+ margin-bottom: 16px;
315
+ p {
316
+ font-weight: 700;
317
+ display: inline-block;
318
+ }
319
+ span {
320
+ word-break: break-all;
321
+ color: #91c850;
322
+ font-size: 16px;
323
+ }
324
+ }
325
+ .answer-key {
326
+ line-height: 20px;
327
+ p {
328
+ font-weight: 700;
329
+ line-height: 20px;
330
+ margin-bottom: 16px;
331
+ }
332
+ span {
333
+ word-break: break-all;
334
+ }
335
+ }
336
+ &.answerParse-success {
337
+ background: rgba(234, 251, 228, 0.6);
338
+ .answer-res {
339
+ background: #91c850;
340
+ }
341
+ }
342
+ }
343
+ .c-evaluateCountdown {
344
+ position: absolute;
345
+ top: 0;
346
+ right: 0;
347
+ min-width: 166px;
348
+ padding: 8px 12px;
349
+ background: #f2f2f4;
350
+ border-radius: 8px;
351
+ color: #212121;
352
+ z-index: 1;
353
+ text-align: center;
354
+ &.evaluateCountdown-hasTime {
355
+ &:hover {
356
+ padding: 8px 32px;
357
+ background: #f1f1f4;
358
+ .countdown {
359
+ line-height: 40px;
360
+ font-size: 26px;
361
+ span {
362
+ line-height: unset;
363
+ }
364
+ svg {
365
+ display: none;
366
+ }
367
+ }
368
+ .answered-wrap {
369
+ display: block;
370
+ }
371
+ }
372
+ .answered-wrap {
373
+ display: none;
374
+ }
375
+ }
376
+ .countdown {
377
+ display: flex;
378
+ align-content: center;
379
+ justify-content: center;
380
+ font-size: 14px;
381
+ color: #000000;
382
+ span {
383
+ line-height: 18px;
384
+ }
385
+ svg {
386
+ margin-left: 8px;
387
+ font-size: 16px;
388
+ color: #969696;
389
+ }
390
+ &.countdown-red {
391
+ color: #ff1818;
392
+ }
393
+ }
394
+ .answered-wrap {
395
+ span {
396
+ color: #2d7aff;
397
+ }
398
+ }
399
+ }
400
+ .c-evaluate-page {
401
+ display: flex;
402
+ align-items: center;
403
+ justify-content: center;
404
+ width: 100%;
405
+ height: 100%;
406
+ .evaluate-container {
407
+ width: 620px;
408
+ padding: 45px 32px;
409
+ text-align: center;
410
+ border-radius: 15px;
411
+ border: 1px solid #e0e0e0;
412
+ .evaluate-name {
413
+ font-size: 20px;
414
+ color: #212121;
415
+ line-height: 28px;
416
+ margin-bottom: 10px;
417
+ max-height: 88px;
418
+ overflow-y: auto;
419
+ word-break: break-all;
420
+ }
421
+ .evaluate-explain {
422
+ padding: 12px 22px 12px 30px;
423
+ margin-bottom: 24px;
424
+ text-align: left;
425
+ border-radius: 8px;
426
+ background: #f2f2f4;
427
+ overflow: hidden;
428
+ > div {
429
+ padding-right: 8px;
430
+ max-height: 206px;
431
+ overflow-y: auto;
432
+ word-break: break-all;
433
+ }
434
+ }
435
+ .evaluate-score {
436
+ display: flex;
437
+ margin-bottom: 24px;
438
+ li + li {
439
+ border-left: 1px solid rgba(213, 213, 213, 0.6);
440
+ }
441
+ li {
442
+ flex: 1;
443
+ div {
444
+ line-height: 50px;
445
+ font-size: 36px;
446
+ color: #000000;
447
+ }
448
+ span {
449
+ line-height: 20px;
450
+ font-size: 14px;
451
+ color: rgba(0, 0, 0, 0.6);
452
+ }
453
+ }
454
+ }
455
+ .evaluate-time-range {
456
+ font-size: 14px;
457
+ color: #000000;
458
+ line-height: 20px;
459
+ margin-bottom: 20px;
460
+ }
461
+
462
+ .evaluate-btn {
463
+ width: 380px;
464
+ height: unset;
465
+ padding: 16px 0;
466
+ text-align: center;
467
+ font-size: 18px;
468
+ color: #ffffff;
469
+ border-radius: 8px;
470
+ }
471
+ }
472
+ }
473
+ .c-totalScore-warp {
474
+ padding: 16px;
475
+ margin-bottom: 16px;
476
+ font-weight: 400;
477
+ color: #666666;
478
+ background: #f2f2f4;
479
+ font-size: 14px;
480
+ border-radius: 6px;
481
+ div + div {
482
+ margin-top: 4px;
483
+ }
484
+ span {
485
+ font-weight: 500;
486
+ color: #090909;
487
+ }
488
+ .score-result {
489
+ color: #2d7aff;
490
+ }
491
+ }
492
+ .text-over-tooltip-components {
493
+ display: inline-block;
494
+ max-width: 98%;
495
+ /* 文字超出宽度显示省略号 单行 */
496
+
497
+ .ellipsis {
498
+ font-size: 14px;
499
+ color: #35393c;
500
+ overflow: hidden;
501
+ text-overflow: ellipsis;
502
+ white-space: nowrap;
503
+
504
+ i {
505
+ font-style: normal;
506
+ word-break: keep-all;
507
+ white-space: nowrap;
508
+ }
509
+ }
510
+
511
+ /* 自定义样式 */
512
+
513
+ .fs20 {
514
+ font-size: 20px;
515
+ font-weight: 600;
516
+ color: green;
517
+ line-height: 22px;
518
+ }
519
+
520
+ .fs12 {
521
+ font-size: 12px;
522
+ font-weight: 400;
523
+ color: orange;
524
+ line-height: 14px;
525
+ }
526
+ }
527
+
528
+
529
+ .c-scale {
530
+ ul,li {
531
+ list-style: none;
532
+ margin: 0;
533
+ padding: 0;
534
+ }
535
+ .n-input {
536
+ width: 100%;
537
+ text-align: left;
538
+ }
539
+ }
540
+
541
+ .no-data-tip {
542
+ display: flex;
543
+ flex-direction: column;
544
+ justify-content: center;
545
+ align-items: center;
546
+ width: 100%;
547
+ height: 100%;
548
+ color: #333333;
549
+ font-size: 22px;
550
+ > img {
551
+ max-width: 70%;
552
+ width: 260px;
553
+ }
554
+ > p {
555
+ margin-top: 12px;
556
+ margin-bottom: 0;
557
+ font-size: 16px;
558
+ color: rgba(0, 0, 0, 0.8);
559
+ }
560
+ > span {
561
+ font-size: 14px;
562
+ color: rgba(0, 0, 0, 0.4);
563
+ margin-top: 6px;
564
+ }
565
+ }
566
+
567
+ .c-scale-address {
568
+ max-width: 500px;
569
+ .field-row {
570
+ width: 100%;
571
+ display: flex;
572
+ overflow: hidden;
573
+ .n-select {
574
+ flex: 1;
575
+ width: 100%;
576
+ padding: 0 5px 5px 0;
577
+ &:last-child {
578
+ padding-right: 0;
579
+ }
580
+ }
581
+ }
582
+ }
583
+
584
+ .c-scale-collection {
585
+ width: 100%;
586
+ .img-card {
587
+ width: 100%;
588
+ }
589
+ &.scale-collection-title {
590
+ text-align: center;
591
+ h1 {
592
+ font-weight: 500;
593
+ }
594
+ }
595
+ &.prompt-message {
596
+ position: relative;
597
+ padding: 10px;
598
+ box-shadow: 0 5px 13px rgb(0 0 0 / 14%);
599
+ background-color: #fff;
600
+ border-radius: 4px;
601
+ color: #666;
602
+ &.is-weak {
603
+ color: #999;
604
+ }
605
+ &.is-strong {
606
+ color: #ff1818;
607
+ padding: 1px 0 0 35px;
608
+ }
609
+ .prompt-icon {
610
+ font-size: 18px;
611
+ position: absolute;
612
+ left: 0;
613
+ top: 0;
614
+ }
615
+ .prompt-message-content {
616
+ line-height: 16px;
617
+ font-size: 14px;
618
+ }
619
+ }
620
+ }
621
+
622
+ .c-time-range {
623
+ display: flex;
624
+ align-items: center;
625
+ }
626
+
627
+ .c-map-container {
628
+ width: 100%;
629
+ cursor: pointer;
630
+ :deep(.n-input.map-input) {
631
+ .n-input__prefix {
632
+ transform: rotate(180deg);
633
+ .n-icon {
634
+ color: rgba(0, 0, 0, 0.65);
635
+ }
636
+ }
637
+ &.n-input--disabled .n-input__input-el {
638
+ color: rgba(0, 0, 0, 0.65);
639
+ background-color: #fff;
640
+ cursor: pointer;
641
+ }
642
+ }
643
+ }
644
+
645
+ .c-scale-map-modal .n-card__content {
646
+ overflow: hidden;
647
+ }
648
+
649
+ .c-scale-upload {
650
+ width: 100%;
651
+ :deep(.n-upload-file-list) {
652
+ display: flex;
653
+ .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type {
654
+ box-sizing: border-box;
655
+ background: rgba(0, 0, 0, 0.5);
656
+ span.n-button__icon {
657
+ color: #fff;
658
+
659
+ }
660
+ }
661
+ .n-upload-trigger.n-upload-trigger--image-card {
662
+ width: 184px;
663
+ height: 184px;
664
+ border-color: #d5d5d5;
665
+ background-color: #fafafa;
666
+ }
667
+ .n-upload-file.n-upload-file--image-card-type {
668
+ width: 184px;
669
+ height: 184px;
670
+ padding: 8px;
671
+ border-color: #d5d5d5;
672
+ background-color: #fafafa;
673
+ .n-image {
674
+ height: 100%;
675
+ }
676
+ img {
677
+ object-fit: cover !important;
678
+ }
679
+ }
680
+ }
681
+ .upload-img-wrap {
682
+ display: flex;
683
+ flex-direction: column;
684
+ align-items: center;
685
+ }
686
+
687
+ .dragger-upload-text {
688
+ display: flex;
689
+ align-items: center;
690
+ }
691
+ &.scale-upload-file {
692
+ .n-upload-dragger {
693
+ padding: 16px 0;
694
+ }
695
+ .n-upload {
696
+ opacity: 1 !important;
697
+ --n-item-disabled-opacity: 1 !important;
698
+ }
699
+ .dragger-upload-text {
700
+ color: rgba(0, 0, 0, 0.65)
701
+ }
702
+ :deep(.n-upload-file-list) {
703
+ display: flex;
704
+ flex-direction: column;
705
+ width: 100%;
706
+ .n-upload-file {
707
+ width: 100%;
708
+ }
709
+
710
+ }
711
+ :deep(.n-upload-trigger) {
712
+ width: 100%;
713
+ background: #fafafa;
714
+ border-color: #d5d5d5;
715
+ }
716
+ }
717
+ }
718
+
719
+ .text-over-tooltip-components {
720
+ display: inline-block;
721
+ max-width: 98%;
722
+ /* 文字超出宽度显示省略号 单行 */
723
+ .ellipsis {
724
+ font-size: 14px;
725
+ color: #35393c;
726
+ overflow: hidden;
727
+ text-overflow: ellipsis;
728
+ white-space: nowrap;
729
+ i {
730
+ font-style: normal;
731
+ word-break: keep-all;
732
+ white-space: nowrap;
733
+ }
734
+ }
735
+ /* 自定义样式 */
736
+ .fs20 {
737
+ font-size: 20px;
738
+ font-weight: 600;
739
+ color: green;
740
+ line-height: 22px;
741
+ }
742
+ .fs12 {
743
+ font-size: 12px;
744
+ font-weight: 400;
745
+ color: orange;
746
+ line-height: 14px;
747
+ }
748
+ }