cloud-web-corejs 1.0.313 → 1.0.315

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.
@@ -0,0 +1,723 @@
1
+ // Core 列表/详情页白底壳。仅由 styles/index.scss 引入一次。
2
+ // 从历史 style.scss 迁入:body 内覆盖保留 body 前缀,顶层 #containt 保持原选择器。
3
+ @import "./variables.scss";
4
+ @import "./mixin.scss";
5
+
6
+ body {
7
+ .grid-height {
8
+ //height: calc(100vh - 50.5px);
9
+ > div {
10
+ height: inherit;
11
+ }
12
+ .el-drawer__wrapper {
13
+ position: absolute;
14
+ .el-drawer__body {
15
+ padding: 0;
16
+ border-top: solid 1px $bg-color-disabled;
17
+ #containt {
18
+ margin: 0;
19
+ // .el-tab-pane{
20
+ // .grid-height{height:calc(100vh - 224px)}
21
+ // .detail-wrap .d-cont{height: calc(100vh - 256px);}
22
+ // }
23
+ }
24
+ .vxe-grid {
25
+ .vxe-grid--pager-wrapper {
26
+ min-height: 0;
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ #app {
33
+ #containt.designer-view {
34
+ background: none;
35
+ box-shadow: none;
36
+ }
37
+ }
38
+ #containt.list-drag {
39
+ overflow: hidden;
40
+ .tree-box {
41
+ white-space: nowrap;
42
+ width: 28%;
43
+ min-width: 28%;
44
+ .grid-height {
45
+ .vxe-grid .screen-box {
46
+ white-space: initial;
47
+ }
48
+ }
49
+ }
50
+ .main-right {
51
+ width: 72%;
52
+ margin-left: -9px;
53
+ padding-left: 9px;
54
+ height: 100%;
55
+ }
56
+ }
57
+ .dialog-style.list-dialog.full-height.home .el-dialog__body #containt {
58
+ padding: 10px 10px 0;
59
+ .detail-wrap .d-cont {
60
+ height: calc(100vh - 105px);
61
+ }
62
+ }
63
+ }
64
+
65
+ .app-main #containt {
66
+ margin: 0 10px;
67
+ position: relative;
68
+ z-index: 9;
69
+ border-radius: 0 0 2px 2px;
70
+ height: 100%;
71
+ .detail-wrap {
72
+ .d-header {
73
+ margin: -8px -12px 0;
74
+ }
75
+ .d-cont {
76
+ margin: 0 -12px;
77
+ width: calc(100% + 24px);
78
+ }
79
+ }
80
+ }
81
+
82
+ .app-main #containt.xform-page-dialog-host {
83
+ z-index: 0;
84
+ isolation: isolate;
85
+
86
+ > .xform-page-dialog-wrapper {
87
+ position: absolute !important;
88
+ inset: 0;
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ background: transparent;
93
+ overflow: auto !important;
94
+
95
+ &.xform-page-dialog-wrapper--top {
96
+ align-items: flex-start;
97
+ }
98
+
99
+ > .el-dialog {
100
+ flex: none;
101
+ display: flex;
102
+ flex-direction: column;
103
+ max-width: calc(100% - 24px);
104
+ max-height: calc(100% - 24px);
105
+ margin-bottom: 0;
106
+
107
+ &.is-fullscreen {
108
+ max-width: 100%;
109
+ max-height: 100%;
110
+ }
111
+
112
+ > .el-dialog__body {
113
+ min-height: 0;
114
+ overflow: auto;
115
+ }
116
+ }
117
+
118
+ // 业务表单原先用视口 vh 给 .cont 定高。挂进当前页面后,可用高度变小,
119
+ // 需要让标题、内容、底栏按弹框自身高度分配,只在内容区滚动。
120
+ &.xform-page-form-dialog-wrapper {
121
+ overflow: hidden !important;
122
+
123
+ > .el-dialog {
124
+ overflow: hidden;
125
+
126
+ > .el-dialog__header,
127
+ > .el-dialog__footer {
128
+ flex: 0 0 auto;
129
+ }
130
+
131
+ > .el-dialog__body {
132
+ display: flex;
133
+ flex: 0 1 auto;
134
+ flex-direction: column;
135
+ height: auto !important;
136
+ min-height: 0;
137
+ overflow: hidden;
138
+
139
+ > .cont {
140
+ flex: 0 1 auto;
141
+ // 与全局业务弹框的常用高度一致;bodyConfig 的行内高度仍可覆盖。
142
+ height: 70vh;
143
+ min-height: 0;
144
+ overflow-x: hidden;
145
+ overflow-y: auto;
146
+ }
147
+
148
+ // 与全局业务弹框(发布环境基准)一致:内容四周不加额外留白,
149
+ // 间距只来自 .el-dialog__body 的 8px padding 和表单自身样式。
150
+ // 局部弹框挂在 .app-main 内,会额外命中 .app-main #containt 下
151
+ // .detail-wrap 的页面级负 margin(全局弹框挂在 body 下不命中),
152
+ // 这里一并归零,保证 dialogScope 两种模式的内边距一致。
153
+ > .cont.designer-view:not(.fd-list-host) {
154
+ box-sizing: border-box;
155
+ margin: 0;
156
+ border: 0;
157
+ padding: 0;
158
+
159
+ .detail-wrap .d-header,
160
+ .detail-wrap .d-cont {
161
+ margin: 0;
162
+ width: auto;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+
170
+ // 弹框挂进 #app 后,#containt.designer-view 的 background: none 会作用到弹框内容,
171
+ // 白底被去掉,露出页面底色。这里只把内容区白底加回来。
172
+ .el-dialog__body > #containt {
173
+ background-color: #fff;
174
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
175
+
176
+ &.designer-view {
177
+ background-color: #fff;
178
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
179
+ }
180
+ }
181
+ }
182
+ /* 外链页面(#/outLinkView、#/form_outLinkView 等)不走 layout,没有 .app-main 撑高度,
183
+ #containt 只能被内容撑开,列表/详情会塌陷显示不全,这里补上与 .app-main 一致的高度 */
184
+ #app > #containt {
185
+ height: 100vh;
186
+ > #containt {
187
+ height: 100%;
188
+ }
189
+ }
190
+ #containt {
191
+ background-color: #fff;
192
+ border-radius: $control-radius;
193
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); /*margin:10px;*/
194
+ overflow-x: hidden;
195
+ > .el-form {
196
+ padding: 8px 10px 0;
197
+ .title b {
198
+ margin-left: 0;
199
+ }
200
+ }
201
+ .h5-wrap {
202
+ .fix-bottom-btns .btn {
203
+ padding: 10px;
204
+ }
205
+ }
206
+ .detail-wrap {
207
+ position: relative;
208
+ overflow: inherit;
209
+ height: 100%;
210
+ display: flex;
211
+ flex-direction: column;
212
+ > .el-form {
213
+ display: flex;
214
+ flex-direction: column;
215
+ height: 100%;
216
+ .el-form + div {
217
+ flex: 1;
218
+ overflow-y: auto;
219
+ overflow-x: hidden;
220
+ min-height: 0;
221
+ }
222
+ }
223
+ .d-header {
224
+ border-bottom: solid 1px $borderColor;
225
+ height: 40px;
226
+ line-height: 40px;
227
+ padding: 0 24px 0 14px;
228
+ font-size: 13px;
229
+ + div {
230
+ flex: 1;
231
+ overflow-y: auto;
232
+ overflow-x: hidden;
233
+ }
234
+ .fl {
235
+ .button-sty {
236
+ margin-left: 20px;
237
+ position: relative;
238
+ i {
239
+ color: #fff;
240
+ &.icon-add {
241
+ position: absolute;
242
+ left: -1px;
243
+ top: 3px;
244
+ background-color: #fff;
245
+ width: 8px;
246
+ height: 8px;
247
+ }
248
+ }
249
+ }
250
+ > i {
251
+ color: $baseColor;
252
+ display: inline-block;
253
+ vertical-align: middle;
254
+ margin-right: 6px;
255
+ margin-bottom: 1px;
256
+ font-size: 14px;
257
+ font-size: 14px;
258
+ }
259
+ .el-tag {
260
+ margin-left: 12px;
261
+ }
262
+ }
263
+ .fr {
264
+ .button-sty {
265
+ display: inline-block;
266
+ vertical-align: middle;
267
+ margin-bottom: 2px;
268
+ }
269
+ .groupbutton {
270
+ margin-bottom: 3px;
271
+ }
272
+ .el-form + .el-button,
273
+ .field-wrapper + .field-wrapper {
274
+ margin-left: 10px;
275
+ }
276
+ .field-wrapper {
277
+ display: inline-block !important;
278
+ }
279
+ }
280
+ }
281
+ .d-cont {
282
+ overflow: auto;
283
+ padding-top: 14px;
284
+ padding: 10px 12px 0;
285
+ //height: inherit; 这样设置表单做的详情页会有问题
286
+ height:auto;
287
+ .d-item {
288
+ border: solid 1px $borderColor;
289
+ padding: 0 112px 14px 12px;
290
+ &:last-child {
291
+ margin-bottom: 10px;
292
+ }
293
+ .btn-close-open {
294
+ font-weight: 400;
295
+ font-size: $fontSizeBase;
296
+ margin: 5px 41px 0 -76px;
297
+ cursor: pointer;
298
+ }
299
+ .title {
300
+ .stat-txt {
301
+ float: right;
302
+ line-height: 28px;
303
+ span {
304
+ display: inline-block;
305
+ color: $red;
306
+ background-color: transparentize($red, 0.9);
307
+ border-radius: 8px;
308
+ line-height: 26px;
309
+ padding: 0 6px;
310
+ }
311
+ }
312
+ }
313
+ .title-form {
314
+ margin-top: 8px;
315
+ margin-left: 4px;
316
+ > span {
317
+ width: 230px;
318
+ display: inline-block;
319
+ }
320
+ }
321
+ .button-sty,
322
+ .el-input {
323
+ vertical-align: middle;
324
+ line-height: 26px;
325
+ }
326
+ &.product-info {
327
+ padding-right: 0;
328
+ margin-bottom: 0;
329
+ padding-bottom: 0;
330
+ .pi-item {
331
+ border-top: solid 1px $border-color-lighter;
332
+ padding: 7px 12px;
333
+ margin: 0 0 0 -12px;
334
+ padding-bottom: 3px;
335
+ // .tree-box{height: calc(100vh - 230px);}
336
+ // #labBtn{height: calc(100vh - 220px);}
337
+ .main-right {
338
+ padding: 0;
339
+ width: 86%;
340
+ .grid-height {
341
+ // height: calc(100vh - 230px);
342
+ // .vxe-grid-block{height: calc(100vh - 342px);}
343
+ .screen-btns .el-radio {
344
+ line-height: 28px;
345
+ height: $control-height;
346
+ }
347
+ }
348
+ }
349
+ .pro-annex .pa-cont {
350
+ border: none;
351
+ margin-top: 0;
352
+ .nav {
353
+ width: 100%;
354
+ border-right: none;
355
+ }
356
+ }
357
+ }
358
+ }
359
+ .style1 {
360
+ .d-item {
361
+ padding-right: 12px;
362
+ margin: 4px 0 12px;
363
+ }
364
+ > .d-item:last-child {
365
+ margin-bottom: 0;
366
+ }
367
+ .m-2 {
368
+ margin: 0 -4px;
369
+ }
370
+ }
371
+ .m-2 {
372
+ display: flex;
373
+ .d-item {
374
+ flex: 1;
375
+ margin: 6px 8px;
376
+ .grid-h {
377
+ margin-top: 5px;
378
+ }
379
+ }
380
+ }
381
+ }
382
+ }
383
+ &[visible-key="showBillEdit"] .d-cont {
384
+ height: 73vh;
385
+ }
386
+ .slide-nav {
387
+ top: 120px;
388
+ right: 28px;
389
+ }
390
+ //.tabCard-sty1 > .el-tabs__content .d-cont{height: calc(100vh - 154px) }
391
+ // &.style{
392
+ // .d-header{height:auto;
393
+ // .product-detail_xx{height:10vh}
394
+ // }
395
+ // }
396
+
397
+ .postscript-box {
398
+ padding-left: 26px;
399
+ > .item {
400
+ border-bottom: solid 1px $border-color-lighter;
401
+ overflow: hidden;
402
+ padding: 6px 0 18px;
403
+ font-size: $fontSizeBase;
404
+ .name {
405
+ float: left;
406
+ font-size: 13px;
407
+ color: $text-color-darker;
408
+ line-height: 21px;
409
+ }
410
+ .time {
411
+ color: #225076;
412
+ display: inline-block;
413
+ background: #22507614;
414
+ padding: 2px 6px;
415
+ border-radius: $control-radius;
416
+ }
417
+ .txt {
418
+ padding: 8px 0 12px;
419
+ color: $text-color-dark;
420
+ }
421
+ .attach-box {
422
+ overflow: hidden;
423
+ }
424
+ }
425
+ }
426
+ }
427
+
428
+ .detail-box {
429
+ border: solid 1px $border-color-lighter;
430
+ min-height: 268px;
431
+ margin: 16px 6px 0;
432
+ .t {
433
+ padding: 0 12px;
434
+ height: 25px;
435
+ line-height: 32px;
436
+ display: inline-block;
437
+ background: #fff;
438
+ margin-left: 7px;
439
+ float: left;
440
+ margin-top: -16px;
441
+ font-size: 14px;
442
+ position: relative;
443
+ color: $baseColor;
444
+ &:before {
445
+ content: "";
446
+ position: absolute;
447
+ left: 0;
448
+ top: 13px;
449
+ width: 5px;
450
+ height: 5px;
451
+ border-radius: 1px;
452
+ background-color: #cdcdcd;
453
+ }
454
+ &:after {
455
+ content: "";
456
+ position: absolute;
457
+ right: 0;
458
+ top: 13px;
459
+ width: 5px;
460
+ height: 5px;
461
+ border-radius: 1px;
462
+ background-color: #cdcdcd;
463
+ }
464
+ }
465
+ .grid-height {
466
+ padding: 12px 10px;
467
+ height: 100%;
468
+ }
469
+ }
470
+
471
+ .main-right {
472
+ width: 86%;
473
+ .breadcrumb-sty {
474
+ height: $control-height;
475
+ line-height: 27px;
476
+ margin-left: 24px;
477
+ vertical-align: middle;
478
+ .el-icon-map-location {
479
+ font-size: 15px;
480
+ vertical-align: middle;
481
+ margin-right: 4px;
482
+ color: $baseColor;
483
+ margin-top: 7px;
484
+ float: left;
485
+ }
486
+ > span {
487
+ vertical-align: middle;
488
+ }
489
+ }
490
+ }
491
+ .review-right .rq-editItem .upload-img {
492
+ margin-bottom: 0 !important;
493
+ }
494
+ .upload-img {
495
+ margin-bottom: 10px !important;
496
+ .upload-list {
497
+ margin-right: 10px;
498
+ width: 103px;
499
+ display: inline-block;
500
+ float: left;
501
+ position: relative;
502
+ margin-bottom: 9px;
503
+ a {
504
+ font-size: 0;
505
+ display: block;
506
+ }
507
+ a[target="view_window"] {
508
+ border: dashed 1px #c0ccda;
509
+ background-color: #fbfdff;
510
+ border-radius: $control-radius;
511
+ height: 103px;
512
+ width: 103px;
513
+ display: table-cell;
514
+ vertical-align: middle;
515
+ text-align: center;
516
+ line-height: 0;
517
+ .img {
518
+ max-width: 100%;
519
+ max-height: 100%;
520
+ }
521
+ }
522
+ .tit {
523
+ @include clamp(2);
524
+ width: 100%;
525
+ text-align: left;
526
+ height: 27px;
527
+ line-height: 14px;
528
+ word-break: break-all;
529
+ }
530
+ .del {
531
+ position: absolute;
532
+ color: $red;
533
+ right: -6px;
534
+ top: -6px;
535
+ font-size: 21px;
536
+ background: #fff;
537
+ border-radius: 50%;
538
+ line-height: 21px;
539
+ }
540
+ }
541
+ .el-upload {
542
+ .avatar-uploader {
543
+ float: left;
544
+ cursor: pointer;
545
+ }
546
+ }
547
+ }
548
+ .vxe-grid {
549
+ #uploadImage.upload-img {
550
+ margin-bottom: 0 !important;
551
+ min-height: inherit;
552
+ .upload-list {
553
+ width: 28px !important;
554
+ height: $control-height !important;
555
+ margin: 2px 8px 2px 0; //width为36的时候普通列表高度有问题
556
+ a {
557
+ line-height: 1;
558
+ }
559
+ .del {
560
+ right: -4px;
561
+ top: -2px;
562
+ font-size: 14px;
563
+ }
564
+ }
565
+ .avatar-uploader {
566
+ width: 29px !important;
567
+ height: 29px !important;
568
+ line-height: 28px !important;
569
+ font-size: 18px;
570
+ margin: 2px 0;
571
+ .avatar-uploader-icon {
572
+ font-size: inherit !important;
573
+ }
574
+ }
575
+ }
576
+ .upload-img1 {
577
+ #uploadImage {
578
+ white-space: nowrap;
579
+ > div {
580
+ float: none !important;
581
+ }
582
+ }
583
+ .avatar-uploader {
584
+ width: 66px;
585
+ height: 66px;
586
+ line-height: 66px;
587
+ margin-bottom: 0;
588
+ }
589
+ .el-upload-list .el-upload-list__item {
590
+ width: 180px;
591
+ height: 66px;
592
+ padding-left: 68px;
593
+ margin-bottom: 0;
594
+ margin-right: 6px;
595
+ .el-upload-list__item-name p:first-child {
596
+ margin-top: 2px;
597
+ white-space: nowrap;
598
+ }
599
+ .el-upload-list__item-thumbnail {
600
+ width: 60px;
601
+ height: 60px;
602
+ padding: 2px 4px;
603
+ margin-left: -60px;
604
+ p {
605
+ width: 58px;
606
+ height: 58px;
607
+ }
608
+ }
609
+ }
610
+ }
611
+ }
612
+
613
+ &.resize-ing {
614
+ cursor: e-resize !important;
615
+ -moz-user-select: none;
616
+ -webkit-user-select: none;
617
+ -ms-user-select: none;
618
+ -khtml-user-select: none;
619
+ user-select: none;
620
+ .drag-item {
621
+ -webkit-transition: all 0s ease;
622
+ -o-transition: all 0s ease;
623
+ transition: all 0s ease;
624
+ }
625
+ &.transverse {
626
+ cursor: n-resize !important;
627
+ }
628
+ }
629
+
630
+ // .el-tab-pane .el-tab-pane{
631
+ // .detail-wrap .d-cont{height: calc(100vh - 149px);}
632
+ // .grid-height{height: calc(100vh - 117px);}
633
+ // }
634
+ //.el-tab-pane .el-tab-pane .el-tab-pane .grid-height{height: calc(100vh - 151px);}
635
+ .mce-container,
636
+ .mce-container *,
637
+ .mce-widget,
638
+ .mce-widget *,
639
+ .mce-reset {
640
+ font-size: $fontSizeBase;
641
+ }
642
+ .mce-panel {
643
+ border-color: $border-color-soft;
644
+ box-shadow: none;
645
+ width: calc(100% - 1px) !important;
646
+ .mce-btn button {
647
+ font-size: $fontSizeBase;
648
+ }
649
+ .mce-branding {
650
+ display: none;
651
+ }
652
+ .mce-top-part::before {
653
+ display: none;
654
+ }
655
+ }
656
+ }
657
+
658
+ .app-main #containt.detail-outBox {
659
+ height: calc(100vh - 42px);
660
+ .d-header {
661
+ margin: 0;
662
+ }
663
+ .d-cont {
664
+ margin: 0;
665
+ width: 100%;
666
+ }
667
+ }
668
+
669
+ .slide-nav {
670
+ position: fixed;
671
+ top: 68px;
672
+ right: 23px;
673
+ background: #fff;
674
+ color: $baseColor;
675
+ border-radius: 10px 0 0 10px;
676
+ border: solid 1px $baseColor;
677
+ border-right: none;
678
+ line-height: 30px;
679
+ padding: 0 14px;
680
+ z-index: 99;
681
+ font-size: $fontSizeBase;
682
+ &:before {
683
+ content: "";
684
+ font-family: element-icons !important;
685
+ font-size: 14px;
686
+ vertical-align: bottom;
687
+ margin-right: 2px;
688
+ vertical-align: middle;
689
+ }
690
+ &:hover {
691
+ background-color: transparentize($baseColor, 0.83);
692
+ border-right: none;
693
+ color: $baseColor;
694
+ p {
695
+ width: auto;
696
+ }
697
+ }
698
+ p {
699
+ display: inline-block;
700
+ white-space: nowrap;
701
+ width: 48px;
702
+ min-width: 48px;
703
+ vertical-align: middle;
704
+ margin: 0;
705
+ overflow: hidden;
706
+ }
707
+ }
708
+ .slide-wrap {
709
+ position: absolute;
710
+ margin-top: 10px;
711
+ right: -6px;
712
+ text-align: right;
713
+ z-index: 999;
714
+ overflow: auto;
715
+ max-height: calc(100vh - 163px);
716
+ .slide-nav {
717
+ position: static;
718
+ top: inherit;
719
+ right: inherit;
720
+ margin-bottom: 4px;
721
+ display: inline-block;
722
+ }
723
+ }