address-book-shell 0.0.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 (65) hide show
  1. package/.browserslistrc +3 -0
  2. package/.eslintrc.js +14 -0
  3. package/.prettierrc.js +16 -0
  4. package/README.md +20 -0
  5. package/babel.config.js +3 -0
  6. package/docs/.vuepress/components/demo-1.vue +14 -0
  7. package/docs/.vuepress/config.js +24 -0
  8. package/docs/README.md +37 -0
  9. package/docs/assets/imgs/tray.png +0 -0
  10. package/docs/page/README.md +1 -0
  11. package/docs/page/install.md +10 -0
  12. package/docs/page/register.md +11 -0
  13. package/lib/address-book-shell.common.js +5367 -0
  14. package/lib/address-book-shell.umd.js +5377 -0
  15. package/lib/address-book-shell.umd.min.js +1 -0
  16. package/lib/demo.html +8 -0
  17. package/lib/fonts/element-icons.535877f5.woff +0 -0
  18. package/lib/fonts/element-icons.732389de.ttf +0 -0
  19. package/lib/fonts/iconfont.0ebb200a.ttf +0 -0
  20. package/lib/fonts/iconfont.75f80b2a.woff2 +0 -0
  21. package/lib/fonts/iconfont.b7064d58.eot +0 -0
  22. package/lib/fonts/iconfont.f3953641.woff +0 -0
  23. package/lib/img/iconfont.0956fc20.svg +493 -0
  24. package/package.json +39 -0
  25. package/packages/address-book/filters/index.js +17 -0
  26. package/packages/address-book/index.js +6 -0
  27. package/packages/address-book/src/components/address-aside.vue +453 -0
  28. package/packages/address-book/src/components/address-content.vue +1048 -0
  29. package/packages/address-book/src/components/address-current-list.vue +137 -0
  30. package/packages/address-book/src/components/address-figure-tree.vue +106 -0
  31. package/packages/address-book/src/components/address-group-item.vue +145 -0
  32. package/packages/address-book/src/components/address-group.vue +102 -0
  33. package/packages/address-book/src/index.vue +639 -0
  34. package/packages/address-book/src/utils/util.js +109 -0
  35. package/packages/config.js +6 -0
  36. package/packages/index.js +31 -0
  37. package/public/favicon.ico +0 -0
  38. package/public/index.html +17 -0
  39. package/src/App.vue +9 -0
  40. package/src/api/address-list-api.js +89 -0
  41. package/src/api/cas-api.js +0 -0
  42. package/src/assets/icon-font/demo.css +539 -0
  43. package/src/assets/icon-font/demo_index.html +5642 -0
  44. package/src/assets/icon-font/iconfont.css +966 -0
  45. package/src/assets/icon-font/iconfont.eot +0 -0
  46. package/src/assets/icon-font/iconfont.js +1 -0
  47. package/src/assets/icon-font/iconfont.json +1668 -0
  48. package/src/assets/icon-font/iconfont.svg +493 -0
  49. package/src/assets/icon-font/iconfont.ttf +0 -0
  50. package/src/assets/icon-font/iconfont.woff +0 -0
  51. package/src/assets/icon-font/iconfont.woff2 +0 -0
  52. package/src/assets/logo.png +0 -0
  53. package/src/components/HelloWorld.vue +130 -0
  54. package/src/main.js +30 -0
  55. package/src/scss/global.scss +10 -0
  56. package/src/store/index.js +10 -0
  57. package/src/store/mutation-types.js +4 -0
  58. package/src/theme/element-ui-theme/config.json +1 -0
  59. package/src/theme/element-ui-theme/element-ui-common.scss +1394 -0
  60. package/src/theme/element-ui-theme/theme/fonts/element-icons.ttf +0 -0
  61. package/src/theme/element-ui-theme/theme/fonts/element-icons.woff +0 -0
  62. package/src/theme/element-ui-theme/theme/index.css +1 -0
  63. package/src/utils/plug_in-config.js +38 -0
  64. package/src/utils/util.js +20 -0
  65. package/vue.config.js +39 -0
@@ -0,0 +1,1394 @@
1
+ .el-input__inner[type="number"]::-webkit-outer-spin-button,
2
+ .el-input__inner[type="number"]::-webkit-inner-spin-button {
3
+ -webkit-appearance: none !important;
4
+ margin: 0;
5
+ }
6
+
7
+ // 按钮
8
+ $button-default-text-color:#606266;
9
+ $button-default-text-grba:rgba(255, 255, 255, 0.65);
10
+ $border-default-rgba: rgba(0, 0, 0, 0.15);
11
+
12
+ // 按钮
13
+ .el-button+.el-button {
14
+ margin-left: 12px
15
+ }
16
+
17
+ .el-button {
18
+ border-radius: 2px;
19
+
20
+ &.el-button--mini {
21
+ height: 24px;
22
+ line-height: 1;
23
+ min-width: auto;
24
+ padding: 0 8px !important;
25
+
26
+ }
27
+
28
+ &.el-button--info {
29
+ border: 1px solid rgba($color: #000000, $alpha: 0.15);
30
+
31
+ &:focus {
32
+ border: 1px solid rgba($color: #000000, $alpha: 0.15) !important;
33
+ }
34
+ }
35
+
36
+ &.el-button--default:not(.ghost-button):not(.is-disabled) {
37
+
38
+ &:focus,
39
+ &:hover {
40
+ // border-color: $hr-red;
41
+ border: 1px solid $hr-red;
42
+ background: #fff;
43
+ color: $hr-red;
44
+ }
45
+
46
+ &:active {
47
+ background-color: #feeceb;
48
+ }
49
+ }
50
+
51
+ &.el-button--primary {
52
+ border: 1px solid;
53
+ color: #fff !important;
54
+ background-color: #f44336 !important;
55
+ border-color: #f44336 !important;
56
+
57
+ &:focus {
58
+ border: 1px solid #f6695e;
59
+ }
60
+ }
61
+
62
+ &.is-plain {
63
+ background-color: #fff;
64
+ }
65
+
66
+ &.el-button--info.is-disabled {
67
+ color: #8a8a8a;
68
+ }
69
+
70
+ &.el-button--info.dashed {
71
+ border: 1px dashed rgba(0, 0, 0, 0.15);
72
+ }
73
+
74
+ &.danger-text-button.el-button--text {
75
+ color: $hr-danger-color !important;
76
+ }
77
+
78
+ // 危险按钮
79
+ &.el-button--danger {
80
+ &.is-plain {
81
+
82
+ &:hover,
83
+ &:focus {
84
+ color: #ff9800;
85
+ border-color: #ffd699;
86
+ background-color: #fff;
87
+ }
88
+
89
+ &:active {
90
+ background-color: rgba(255, 214, 153, .3)
91
+ }
92
+ }
93
+ }
94
+
95
+ //幽灵按钮
96
+ &.ghost-button {
97
+ border-color: #fff;
98
+ background-color: #000;
99
+ color: $button-default-text-grba;
100
+
101
+ &:hover,
102
+ &:focus {
103
+ color: $button-default-text-grba;
104
+ }
105
+
106
+ &:active {
107
+ background: rgba(#ccc, .3);
108
+ }
109
+ }
110
+
111
+ // 文字按钮
112
+ &.el-button--text:not(.is-disabled) {
113
+ // color: #1890FF;
114
+
115
+ &:active {
116
+ opacity: .6;
117
+ }
118
+ }
119
+
120
+ i.iconfont {
121
+ font-size: 100%;
122
+ margin-right: 8px;
123
+ }
124
+ }
125
+
126
+ // 单选框组合
127
+ .el-radio-group {
128
+ .el-radio-button:first-child {
129
+ .el-radio-button__inner {
130
+ border-radius: 2px 0 0 2px;
131
+ }
132
+ }
133
+
134
+ .el-radio-button:last-child {
135
+ .el-radio-button__inner {
136
+ border-radius: 0 2px 2px 0;
137
+ }
138
+ }
139
+
140
+ // 去除选中时的阴影
141
+ .el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled) {
142
+ box-shadow: none;
143
+ }
144
+ }
145
+
146
+ // 分页
147
+ .el-pagination {
148
+ $font-size: 14px;
149
+ $width-heignt: 32px;
150
+ $line-height: 32px;
151
+
152
+ %el-pagination-default-style {
153
+ height: $width-heignt;
154
+ min-width: $width-heignt !important;
155
+ border-radius: 3px !important;
156
+ }
157
+
158
+ font-size: $font-size;
159
+ font-weight: 400;
160
+ color: $hr-color65;
161
+
162
+ .el-pagination__jump {
163
+ .el-pagination__editor.is-in-pagination {
164
+ .el-input__inner {
165
+ padding: 0;
166
+ font-size: $font-size;
167
+ height: $line-height;
168
+ }
169
+ }
170
+ }
171
+
172
+ .btn-prev,
173
+ .btn-next {
174
+ @extend %el-pagination-default-style;
175
+ background-color: #fff !important;
176
+ // border: 1px solid $border-default-rgba;
177
+ margin: 0 8px;
178
+ padding: 0;
179
+
180
+ &:hover {
181
+ color: $hr-red;
182
+ }
183
+
184
+ .el-icon {
185
+ font-size: $font-size;
186
+ }
187
+ }
188
+
189
+ .el-pager {
190
+ li {
191
+ line-height: $line-height;
192
+ margin: 0 !important;
193
+ margin-right: 8px !important;
194
+ @extend %el-pagination-default-style;
195
+ padding: 0 5px !important;
196
+ font-size: 14px;
197
+
198
+ &:last-child {
199
+ margin-right: 0 !important;
200
+ }
201
+
202
+ &:hover,
203
+ &.active {
204
+ border: 1px solid $hr-red !important;
205
+ }
206
+ }
207
+
208
+ .number {
209
+ // line-height: 30px !important;
210
+ // font-size: 11px;
211
+ border: 1px solid transparent;
212
+ // border-radius: 1px;
213
+ }
214
+
215
+ .more::before {
216
+ line-height: $width-heignt
217
+ }
218
+ }
219
+
220
+ &.is-background {
221
+ .el-pager {
222
+ li:not(.active) {
223
+ background-color: #fff;
224
+ border-color: $border-default-rgba;
225
+ color: #303133
226
+ }
227
+
228
+ .number {
229
+ line-height: $line-height;
230
+ }
231
+ }
232
+
233
+ .btn-prev,
234
+ .btn-next {
235
+ border: 1px solid $border-default-rgba;
236
+ margin: 0 8px;
237
+
238
+ &:hover:not([disabled="disabled"]) {
239
+ border-color: $hr-red;
240
+ }
241
+ }
242
+ }
243
+
244
+ &.small {
245
+ transform: scale(.75);
246
+ margin-left: -14%;
247
+ }
248
+
249
+ &.minimalism {
250
+ .el-pagination__jump {
251
+ height: $line-height;
252
+ line-height: $line-height;
253
+ vertical-align: middle
254
+ }
255
+ }
256
+
257
+ &.onlyBorder {
258
+ .el-pager {
259
+ li {
260
+ border: 1px solid rgba($color: #000000, $alpha: 0.15);
261
+ }
262
+ }
263
+ }
264
+
265
+ span.el-pagination__total {
266
+ font-size: $font-size;
267
+ }
268
+
269
+ .el-pagination__sizes {
270
+ height: $line-height !important;
271
+ line-height: $line-height !important;
272
+ margin-top: -1px;
273
+
274
+ .el-input__inner {
275
+ font-size: $font-size;
276
+ height: $line-height;
277
+ line-height: $line-height;
278
+ }
279
+ }
280
+ }
281
+
282
+ // 单选框
283
+ $radio-background-pink:#FFE6E6;
284
+
285
+ .el-radio {
286
+ .el-radio__inner {
287
+ width: 16px;
288
+ height: 16px;
289
+
290
+ &:hover {
291
+ background: $radio-background-pink;
292
+ color: $button-default-text-grba;
293
+ }
294
+ }
295
+
296
+ .el-radio__input.is-checked {
297
+ .el-radio__inner {
298
+ border: 1px solid rgba(244, 67, 54, 0.5);
299
+ background: $radio-background-pink;
300
+
301
+ &::after {
302
+ width: 8px;
303
+ height: 8px;
304
+ background-color: $hr-red;
305
+ }
306
+ }
307
+ }
308
+
309
+ .is-disabled {
310
+ .el-radio__inner {
311
+ border-color: #f44336 !important;
312
+ opacity: .5;
313
+
314
+ &::after {
315
+ background-color: #f44336 !important;
316
+ }
317
+ }
318
+ }
319
+ }
320
+
321
+ // 复选框
322
+ .el-checkbox {
323
+ &:not(.is-checked) {
324
+ .el-checkbox__input:not(.is-disabled) {
325
+ .el-checkbox__inner {
326
+ &:hover {
327
+ background-color: $radio-background-pink;
328
+ }
329
+ }
330
+ }
331
+ }
332
+
333
+ .el-checkbox__inner {
334
+ width: 16px;
335
+ height: 16px;
336
+
337
+ &::after {
338
+ left: 5px;
339
+ top: 2px;
340
+ height: 6px;
341
+ width: 3px;
342
+ }
343
+ }
344
+ }
345
+
346
+ // 下拉框
347
+ .el-dropdown-menu {
348
+ .el-dropdown-menu__item {
349
+ border: 1px solid transparent;
350
+ border-radius: 3px;
351
+
352
+ &:focus {
353
+ border-color: $hr-red;
354
+ }
355
+ }
356
+ }
357
+
358
+ // 输入框
359
+ .el-input {
360
+ $default-height: 40px;
361
+ $medium-height: 32px;
362
+ $small-height: 24px;
363
+ $color: rgba(0, 0, 0, 0.25);
364
+ font-size: 16px;
365
+
366
+ &.el-input--medium,
367
+ &.el-input--small {
368
+ font-size: 14px;
369
+ }
370
+
371
+ %placeholder {
372
+ &::-webkit-input-placeholder {
373
+ font-size: 14px;
374
+ color: $color
375
+ }
376
+
377
+ font-size: 14px;
378
+ color: $color
379
+ }
380
+
381
+ &.el-input--prefix {
382
+ .el-input__inner {
383
+ padding-left: 35px;
384
+ }
385
+ }
386
+
387
+ &.el-input--suffix {
388
+ .el-input__inner {
389
+ padding-right: 35px;
390
+ }
391
+ }
392
+
393
+ .el-input__inner {
394
+ color: rgba(0, 0, 0, 0.65);
395
+ border-color: rgba($color: #000000, $alpha: 0.09);
396
+
397
+ &:focus {
398
+ border-color: $hr-red;
399
+ }
400
+
401
+ @extend %placeholder
402
+ }
403
+
404
+ &.is-disabled {
405
+ .el-input__inner {
406
+ background-color: rgba(0, 0, 0, 0.04);
407
+ }
408
+ }
409
+
410
+ .el-input__suffix,
411
+ .el-input__prefix {
412
+ // .el-input__suffix-inner {
413
+ // line-height: 40px;
414
+ // }
415
+ color: rgba($color: #000000, $alpha: .25);
416
+ font-size: 16px;
417
+
418
+ .el-input__icon {
419
+ color: rgba($color: #000000, $alpha: .25);
420
+ cursor: pointer;
421
+ }
422
+ }
423
+
424
+ .el-input__suffix {
425
+ right: 12px;
426
+
427
+ .iconfont {
428
+ // margin-right: 8px;
429
+ }
430
+ }
431
+
432
+ .el-input__prefix {
433
+ left: 12px;
434
+ }
435
+
436
+ // 下拉框
437
+ .el-input-group__prepend,
438
+ .el-input-group__append {
439
+ $color: rgba(0, 0, 0, 0.65);
440
+ color: $color;
441
+ background: #F5F5F5;
442
+
443
+ .el-select {
444
+ .el-input--suffix {
445
+
446
+ //修改placeholder的默认颜色:
447
+ .el-input__inner {
448
+ &::-webkit-input-placeholder {
449
+ color: $color
450
+ }
451
+
452
+ &::-moz-placeholder {
453
+ /* Mozilla Firefox 19+ */
454
+ color: $color
455
+ }
456
+
457
+ &:-moz-placeholder {
458
+ /* Mozilla Firefox 4 to 18 */
459
+ color: $color
460
+ }
461
+
462
+ &:-ms-input-placeholder {
463
+ /* Internet Explorer 10-11 */
464
+ color: $color
465
+ }
466
+
467
+ color: $color
468
+ }
469
+ }
470
+ }
471
+ }
472
+
473
+ .el-input-group__prepend {
474
+ min-width: 100px;
475
+ }
476
+
477
+ &.el-input--medium {
478
+ .el-input__suffix {
479
+ .el-input__suffix-inner {
480
+ line-height: $medium-height;
481
+ }
482
+ }
483
+ }
484
+
485
+ &.el-input--small {
486
+ .el-input__suffix {
487
+ .el-input__suffix-inner {
488
+ line-height: $small-height;
489
+ }
490
+ }
491
+ }
492
+ }
493
+
494
+ // InputNumber 计数器
495
+ .el-input-number {
496
+
497
+ .el-input-number__decrease,
498
+ .el-input-number__increase {
499
+ background: transparent;
500
+ }
501
+ }
502
+
503
+ // tag 标签
504
+ .el-tag {
505
+ border-radius: 2px;
506
+ height: 22px;
507
+ line-height: 20px;
508
+ padding: 0 8px;
509
+
510
+ // font-size: 12px;
511
+ &.green {
512
+ $tag-color: #52C41A;
513
+ background: #F6FFED;
514
+ border: 1px solid #B7EB8F;
515
+ color: $tag-color;
516
+
517
+ .el-tag__close.el-icon-close {
518
+ color: $tag-color;
519
+
520
+ &:hover {
521
+ background-color: $tag-color;
522
+ color: #fff;
523
+ }
524
+ }
525
+ }
526
+
527
+ &.blue {
528
+ $tag-color: #1890FF;
529
+ background: #E6F7FF;
530
+ border: 1px solid #91D5FF;
531
+ color: $tag-color;
532
+
533
+ .el-tag__close.el-icon-close {
534
+ color: $tag-color;
535
+
536
+ &:hover {
537
+ background-color: $tag-color;
538
+ color: #fff;
539
+ }
540
+ }
541
+ }
542
+
543
+ &.yellow {
544
+ $tag-color: #FAAD14;
545
+ background: #FFFBE6;
546
+ border: 1px solid #FFE58F;
547
+ color: $tag-color;
548
+
549
+ .el-tag__close.el-icon-close {
550
+ color: $tag-color;
551
+
552
+ &:hover {
553
+ background-color: $tag-color;
554
+ color: #fff;
555
+ }
556
+ }
557
+ }
558
+
559
+ &.red {
560
+ $tag-color: #FF4D4F;
561
+ background: #FFF1F0;
562
+ border: 1px solid #FFA39E;
563
+ color: $tag-color;
564
+
565
+ .el-tag__close.el-icon-close {
566
+ color: $tag-color;
567
+
568
+ &:hover {
569
+ background-color: $tag-color;
570
+ color: #fff;
571
+ }
572
+ }
573
+ }
574
+
575
+ &.pink {
576
+ $tag-color: #EB2F96;
577
+ background: #FFF0F6;
578
+ border: 1px solid #FFADD2;
579
+ color: $tag-color;
580
+
581
+ .el-tag__close.el-icon-close {
582
+ color: $tag-color;
583
+
584
+ &:hover {
585
+ background-color: $tag-color;
586
+ color: #fff;
587
+ }
588
+ }
589
+ }
590
+
591
+ &.orange {
592
+ $tag-color: #FA541C;
593
+ background: #FFF2E8;
594
+ border: 1px solid #FFBB96;
595
+ color: $tag-color;
596
+
597
+ .el-tag__close.el-icon-close {
598
+ color: $tag-color;
599
+
600
+ &:hover {
601
+ background-color: $tag-color;
602
+ color: #fff;
603
+ }
604
+ }
605
+ }
606
+
607
+ &.purple {
608
+ $tag-color: #722ED1;
609
+ background: #F9F0FF;
610
+ border: 1px solid #D3ADF7;
611
+ color: $tag-color;
612
+
613
+ .el-tag__close.el-icon-close {
614
+ color: $tag-color;
615
+
616
+ &:hover {
617
+ background-color: $tag-color;
618
+ color: #fff;
619
+ }
620
+ }
621
+ }
622
+ }
623
+
624
+ // 步骤条 steps
625
+ .el-steps {
626
+ &.big {
627
+ transform: scale(1.3333333);
628
+
629
+ &.el-steps--horizontal {
630
+ margin-left: 14.4%;
631
+ }
632
+
633
+ &.el-steps--vertical {
634
+ margin-top: 10.5%;
635
+ }
636
+ }
637
+
638
+ .el-step__head {
639
+ .el-step__icon {
640
+ &.is-text {
641
+ border: 1px solid $hr-red
642
+ }
643
+
644
+ .el-step__icon-inner {
645
+ font-weight: 400;
646
+ font-size: 12px;
647
+ line-height: 24px;
648
+ }
649
+ }
650
+
651
+ &.is-success {
652
+ color: $hr-red;
653
+ border-color: $hr-red;
654
+ }
655
+
656
+ &.is-process {
657
+ color: #fff;
658
+ border-color: $hr-red;
659
+
660
+ // background-color: $hr-red;
661
+ .el-step__icon.is-text {
662
+ background-color: $hr-red;
663
+ }
664
+ }
665
+
666
+ &.is-wait {
667
+ .el-step__icon {
668
+ &.is-text {
669
+ border: 1px solid
670
+ }
671
+ }
672
+ }
673
+ }
674
+
675
+ .el-step__main {
676
+ .el-step__title {
677
+ line-height: 24px;
678
+ font-size: 14px;
679
+ font-weight: 400;
680
+
681
+ &.is-success {
682
+ color: rgba(0, 0, 0, 0.65);
683
+ }
684
+
685
+ &.is-process {
686
+ color: rgba(0, 0, 0, 0.85);
687
+ }
688
+
689
+ &.is-wait {
690
+ color: rgba(0, 0, 0, 0.45);
691
+ }
692
+ }
693
+
694
+ .el-step__description {
695
+ width: 200px;
696
+
697
+ &.is-success,
698
+ &.is-wait {
699
+ color: rgba(0, 0, 0, 0.45);
700
+ }
701
+
702
+ &.is-process {
703
+ color: rgba(0, 0, 0, 0.85);
704
+ }
705
+ }
706
+ }
707
+
708
+ &.el-steps--horizontal {
709
+ .el-step {
710
+ height: 24px;
711
+
712
+ &.is-horizontal {
713
+ .el-step__line {
714
+ border-color: rgba(0, 0, 0, .15);
715
+ width: calc(100% - 8px);
716
+ height: 1px;
717
+ }
718
+
719
+ .el-step__line-inner {
720
+ border-color: transparent;
721
+ }
722
+
723
+ position: relative;
724
+
725
+ .el-step__main {
726
+ position: absolute;
727
+ left: 16px;
728
+ top: 0;
729
+ padding: 0 8px;
730
+
731
+ .el-step__title {
732
+ .steps-title {
733
+ padding: 0 8px;
734
+ background-color: #fff;
735
+ }
736
+ }
737
+
738
+ .el-step__description {
739
+ padding: 5px 8px;
740
+ }
741
+ }
742
+ }
743
+ }
744
+ }
745
+
746
+ &.el-steps--vertical {
747
+ .el-step {
748
+ &.is-vertical {
749
+ min-height: 72px;
750
+
751
+ .el-step__head {
752
+ .el-step__line {
753
+ width: 1px;
754
+ margin-top: 32px;
755
+ margin-bottom: 8px;
756
+ }
757
+
758
+ .el-step__line-inner {
759
+ border-color: transparent
760
+ }
761
+ }
762
+ }
763
+ }
764
+ }
765
+ }
766
+
767
+ // Slider 滑块
768
+ .el-slider {
769
+ .el-slider__runway {
770
+ .el-slider__button-wrapper {
771
+
772
+ &:hover,
773
+ &.dragging {
774
+
775
+ .el-slider__button.hover,
776
+ .el-slider__button {
777
+ border-color: #20A943 !important;
778
+ }
779
+ }
780
+ }
781
+
782
+ .el-slider__marks {
783
+ .el-slider__marks-text:last-child {
784
+ width: 25%;
785
+ text-align: center;
786
+ }
787
+ }
788
+ }
789
+ }
790
+
791
+ // Tabs 标签页
792
+ .el-tabs {
793
+ .el-tabs__header {
794
+ &.is-top {
795
+ .el-tabs__nav-wrap {
796
+ &::after {
797
+ content: '';
798
+ background-color: transparent
799
+ }
800
+
801
+ .el-tabs__item {
802
+ font-size: 16px;
803
+
804
+ &.small {
805
+ font-size: 14px;
806
+ }
807
+
808
+ // 失效标签
809
+ &.is-disabled {
810
+ cursor: not-allowed;
811
+ color: rgba(0, 0, 0, .25)
812
+ }
813
+ }
814
+ }
815
+ }
816
+ }
817
+
818
+ &.small {
819
+ .el-tabs__item {
820
+ font-size: 14px !important;
821
+ }
822
+ }
823
+
824
+ &.el-tabs--top:not(.el-tabs--border-card):not(.el-tabs--card) {
825
+ .el-tabs__nav-wrap {
826
+ .el-tabs__nav-scroll {
827
+ .el-tabs__nav {
828
+ .el-tabs__item {
829
+ padding: 0 33px 0 0;
830
+
831
+ &:last-child {
832
+ padding: 0
833
+ }
834
+ }
835
+ }
836
+ }
837
+ }
838
+ }
839
+
840
+ &.el-tabs--border-card {
841
+ border: 1px solid transparent;
842
+ box-shadow: none;
843
+
844
+ .el-tabs__header {
845
+ background-color: transparent;
846
+ border-bottom: 1px solid transparent;
847
+
848
+ .el-tabs__item {
849
+ color: rgba(0, 0, 0, .65);
850
+ margin-right: 2px;
851
+ background-color: rgba(0, 0, 0, 0.04);
852
+ border: 1px solid rgba(0, 0, 0, .15);
853
+ border-radius: 3px 3px 0 0;
854
+ margin-top: 0;
855
+
856
+ &:first-child {
857
+ margin-left: 0;
858
+ }
859
+
860
+ &.is-active {
861
+ border-bottom: 1px solid transparent;
862
+ background-color: #fff;
863
+ }
864
+
865
+ &:hover,
866
+ &.is-active {
867
+ color: #F44336;
868
+ }
869
+ }
870
+ }
871
+ }
872
+
873
+ // 增加标按钮
874
+ .el-tabs__new-tab {
875
+ height: 40px;
876
+ line-height: 40px;
877
+ width: 40px;
878
+ margin: 0;
879
+ background-color: rgba(0, 0, 0, 0.04);
880
+ border: 1px solid rgba(0, 0, 0, 0.15);
881
+ border-radius: 3px 3px 0 0;
882
+ color: rgba(0, 0, 0, 0.65);
883
+
884
+ i {
885
+ font-size: 18px;
886
+ }
887
+ }
888
+ }
889
+
890
+ // 联级选择器
891
+ .el-cascader {}
892
+
893
+ .el-cascader__dropdown {
894
+ .el-cascader-panel {
895
+ .el-cascader-node {
896
+ &:not(.is-disabled):not(.in-active-path) {
897
+ &:hover {
898
+ background: #F5F5F5;
899
+ }
900
+ }
901
+
902
+ &.in-active-path,
903
+ &.is-active {
904
+ background: #FFF2F0;
905
+ font-weight: 400;
906
+ }
907
+ }
908
+ }
909
+ }
910
+
911
+ // 穿梭框
912
+ .el-transfer {
913
+ .el-transfer-panel__header {
914
+ background: #fff
915
+ }
916
+ }
917
+
918
+ // 评分
919
+ .el-rate {
920
+ .el-rate__icon {
921
+ font-size: 20px;
922
+ }
923
+ }
924
+
925
+ // 日期/时间选择框
926
+ .el-popper {
927
+ .el-picker-panel__body {
928
+ .el-picker-panel__content {
929
+ .el-date-table {
930
+ td {
931
+ &:hover {
932
+ >div {
933
+ >span {
934
+ border-color: $hr-red;
935
+ }
936
+ }
937
+ }
938
+
939
+ >div {
940
+ >span {
941
+ border: 1px solid transparent;
942
+ border-radius: 2px;
943
+ line-height: 23px;
944
+ }
945
+ }
946
+ }
947
+ }
948
+ }
949
+ }
950
+
951
+ .el-year-table,
952
+ .el-month-table {
953
+ .cell {
954
+ height: 22px;
955
+ line-height: 22px;
956
+ width: 46px;
957
+ padding: 0 5px;
958
+ }
959
+
960
+ .current {
961
+ .cell {
962
+ color: #fff !important;
963
+ background-color: $hr-red;
964
+ border-radius: 2px;
965
+ }
966
+ }
967
+ }
968
+ }
969
+
970
+ .el-date-editor {
971
+ .el-range-separator {
972
+ width: auto;
973
+ }
974
+ }
975
+
976
+ // 上传
977
+ .el-upload {
978
+ position: relative;
979
+
980
+ .el-upload-dragger {
981
+ width: 384px;
982
+ height: 192px;
983
+
984
+ .drag-upload {
985
+ position: absolute;
986
+ width: 100%;
987
+ left: 50%;
988
+ top: 22.3%;
989
+ transform: translateX(-50%);
990
+ }
991
+
992
+ i {
993
+ font-size: 42px;
994
+ color: $hr-red;
995
+ }
996
+
997
+ .el-upload__text {
998
+ font-size: 14px;
999
+ color: rgba(0, 0, 0, 0.65);
1000
+ margin-top: 20px;
1001
+ }
1002
+
1003
+ .el-upload__tip {
1004
+ font-size: 12px;
1005
+ color: rgba(0, 0, 0, 0.45);
1006
+ }
1007
+ }
1008
+ }
1009
+
1010
+ // 头像上传
1011
+ .avatar-uploader .el-upload {
1012
+ border: 1px dashed #d9d9d9;
1013
+ border-radius: 6px;
1014
+ cursor: pointer;
1015
+ position: relative;
1016
+ overflow: hidden;
1017
+ }
1018
+
1019
+ .avatar-uploader .el-upload:hover {
1020
+ border-color: $hr-red;
1021
+ }
1022
+
1023
+ .avatar-icon-box {
1024
+ font-size: 28px;
1025
+ color: #8c939d;
1026
+ width: 104px;
1027
+ height: 104px;
1028
+ line-height: 104px;
1029
+ text-align: center;
1030
+ background-color: rgba(0, 0, 0, 0.04);
1031
+ ;
1032
+
1033
+ .avatar-icon,
1034
+ .avatar-icon-text {
1035
+ width: 104px;
1036
+ position: absolute;
1037
+ text-align: center;
1038
+ left: 50%;
1039
+ transform: translateX(-50%);
1040
+ }
1041
+
1042
+ .avatar-icon-text {
1043
+ font-size: 14px;
1044
+ color: rgba(0, 0, 0, 0.65);
1045
+ // margin-top: -25px;
1046
+ line-height: 0;
1047
+ bottom: 30px;
1048
+ }
1049
+
1050
+ .avatar-icon {
1051
+ color: #666666;
1052
+ top: 28px;
1053
+ font-size: 20px;
1054
+ }
1055
+ }
1056
+
1057
+ .avatar {
1058
+ width: 104px;
1059
+ height: 104px;
1060
+ display: block;
1061
+ padding: 8px;
1062
+ }
1063
+
1064
+ // 徽标数
1065
+ .el-badge {
1066
+ .el-badge__content {
1067
+ line-height: 17px;
1068
+
1069
+ &.is-dot {
1070
+ width: 10px;
1071
+ height: 10px;
1072
+ }
1073
+ }
1074
+ }
1075
+
1076
+ // 文字提示
1077
+ .el-tooltip__popper {
1078
+ &.is-dark {
1079
+ background: rgba(0, 0, 0, 0.75);
1080
+ color: #fff;
1081
+ box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
1082
+ border-radius: 2px;
1083
+ // font-size: 14px;
1084
+ }
1085
+ }
1086
+
1087
+ // table
1088
+ .el-table {
1089
+ tbody {
1090
+ .el-table__row {
1091
+ td {
1092
+ border-bottom: 1px solid rgba($color: #000000, $alpha: 0.09);
1093
+
1094
+ }
1095
+ }
1096
+ }
1097
+
1098
+ &.selectionHover {
1099
+ .el-table__body {
1100
+ .el-table-column--selection {
1101
+ .el-checkbox__input:not(.is-checked) {
1102
+ display: none;
1103
+ }
1104
+ }
1105
+
1106
+ tr:hover,
1107
+ .current-row {
1108
+ >td.el-table-column--selection {
1109
+ .el-checkbox__input {
1110
+ display: inline-block !important;
1111
+ }
1112
+ }
1113
+ }
1114
+ }
1115
+ }
1116
+
1117
+ .el-table__header-wrapper {
1118
+ tr {
1119
+ th {
1120
+ padding: 4px 0 ;
1121
+ background-color: rgba(0, 0, 0, 0.02);
1122
+
1123
+ &.el-table-column--selection {
1124
+ .cell {
1125
+ padding-left: 16px;
1126
+ padding-right: 8px;
1127
+ }
1128
+ }
1129
+ &.is-left {
1130
+ text-align: left;
1131
+ }
1132
+ &.is-right {
1133
+ text-align: right;
1134
+ }
1135
+ &.is-center {
1136
+ text-align: center;
1137
+ }
1138
+ }
1139
+ }
1140
+ }
1141
+
1142
+ .el-table__body-wrapper {
1143
+ tr {
1144
+ td {
1145
+ padding: 10px 0;
1146
+ &.is-left {
1147
+ text-align: left;
1148
+ }
1149
+ &.is-right {
1150
+ text-align: right;
1151
+ }
1152
+ &.is-center {
1153
+ text-align: center;
1154
+ }
1155
+ }
1156
+ &.el-table__row {
1157
+ &:hover {
1158
+ td {
1159
+ background-color: $hr-select-pink;
1160
+ }
1161
+ }
1162
+ }
1163
+ }
1164
+
1165
+ .el-table-column--selection {
1166
+ .cell {
1167
+ padding-left: 16px;
1168
+ padding-right: 8px;
1169
+ }
1170
+ }
1171
+ }
1172
+
1173
+
1174
+
1175
+ // table 设置滚动条的宽度
1176
+ .el-table__body-wrapper::-webkit-scrollbar {
1177
+ width: 6px;
1178
+ }
1179
+
1180
+ // table 设置滚动条的背景色和圆角
1181
+ .el-table__body-wrapper::-webkit-scrollbar-thumb {
1182
+ background-color: rgba(0, 0, 0, 0.09);
1183
+ border-radius: 8px;
1184
+ }
1185
+ }
1186
+
1187
+ // 对话框
1188
+ .el-dialog {
1189
+ $border: 1px solid rgba(0, 0, 0, 0.09);
1190
+
1191
+ .el-dialog__header {
1192
+ padding: 0 24px;
1193
+ // padding-bottom: 8px;
1194
+ height: 56px;
1195
+ line-height: 56px;
1196
+
1197
+ &.default {
1198
+ border-bottom: $border
1199
+ }
1200
+
1201
+ .el-dialog__headerbtn {
1202
+ top: 20px;
1203
+ }
1204
+ }
1205
+
1206
+ .el-dialog__body {
1207
+
1208
+ line-height: 22px;
1209
+ }
1210
+
1211
+ .el-dialog__footer {
1212
+ padding: 10px 24px;
1213
+
1214
+ &.default {
1215
+ border-top: $border;
1216
+ }
1217
+ }
1218
+
1219
+ &.default {
1220
+ .el-dialog__header {
1221
+ border-bottom: $border
1222
+ }
1223
+
1224
+ .el-dialog__footer {
1225
+ border-top: $border;
1226
+ }
1227
+ }
1228
+ }
1229
+
1230
+
1231
+ // 气泡卡片
1232
+ .el-popover {
1233
+ min-width: 100px;
1234
+ &.meeting-popover {
1235
+ padding: 0 !important;
1236
+ }
1237
+ }
1238
+
1239
+ .el-popover--plain {
1240
+ padding: 8px;
1241
+ $border: 1px solid rgba(0, 0, 0, 0.06);
1242
+
1243
+ .el-popover__title {
1244
+ height: 32px;
1245
+ line-height: 32px;
1246
+ margin-bottom: 0;
1247
+ border-bottom: $border;
1248
+ margin-bottom: 5px;
1249
+ }
1250
+ }
1251
+
1252
+ // Alert 警告
1253
+ .el-alert {
1254
+ border-radius: 6px;
1255
+ padding: 7px;
1256
+ font-size: 14px;
1257
+
1258
+ &.el-alert--warning.is-light {
1259
+ background: #fffbe6;
1260
+ border: 1px solid #ffe58f;
1261
+
1262
+ &:not(.big) {
1263
+ .el-alert__icon {
1264
+ width: 16px;
1265
+ height: 16px;
1266
+ font-size: 16px;
1267
+ }
1268
+ }
1269
+ }
1270
+
1271
+ &:not(.big) {
1272
+ .el-alert__description {
1273
+ margin: 0
1274
+ }
1275
+ }
1276
+
1277
+ &.big {
1278
+ .el-alert__icon {
1279
+ width: 24px;
1280
+ height: 24px;
1281
+ font-size: 24px;
1282
+ }
1283
+
1284
+ .el-alert__title {
1285
+ font-size: 16px;
1286
+ color: rgba(0, 0, 0, 0.85);
1287
+ }
1288
+ }
1289
+
1290
+ .el-alert__description {
1291
+ color: rgba(0, 0, 0, 0.65);
1292
+ }
1293
+
1294
+ .el-alert__icon {
1295
+ align-self: flex-start;
1296
+ }
1297
+
1298
+ .el-alert__content .el-alert__description,
1299
+ .el-alert__title {
1300
+ color: rgba(0, 0, 0, 0.65);
1301
+ }
1302
+ }
1303
+
1304
+ // 抽屉
1305
+ .el-drawer {
1306
+ .el-drawer__header {
1307
+ margin-bottom: 0;
1308
+ padding: 16px 24px;
1309
+ font-size: 16px;
1310
+ color: rgba(0, 0, 0, 0.85);
1311
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
1312
+ }
1313
+
1314
+ .el-drawer__body {
1315
+ position: relative;
1316
+
1317
+ .el-drawer-content {
1318
+ padding: 24px;
1319
+ }
1320
+
1321
+ .el-drawer-content {
1322
+ height: 100%;
1323
+ }
1324
+
1325
+ .el-drawer__foot {
1326
+ width: 100%;
1327
+ position: absolute;
1328
+ bottom: 0;
1329
+ height: 52px;
1330
+ // padding: 0 24px;
1331
+ border-top: 1px solid rgba(0, 0, 0, 0.06);
1332
+
1333
+ .foot-btns {
1334
+ position: absolute;
1335
+ right: 32px;
1336
+ top: 10px;
1337
+ }
1338
+ }
1339
+ }
1340
+
1341
+ &.showFoot {
1342
+ .el-drawer__body {
1343
+ padding-bottom: 52px;
1344
+ }
1345
+ }
1346
+ }
1347
+
1348
+ .el-drawer__wrapper {
1349
+ -webkit-app-region: no-drag;
1350
+ }
1351
+
1352
+ // message
1353
+ .el-message {
1354
+ box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
1355
+ border: none;
1356
+ background-color: #fff;
1357
+
1358
+ .el-message__content {
1359
+ color: rgba(0, 0, 0, 0.65);
1360
+ }
1361
+ }
1362
+
1363
+ // 表单
1364
+ .el-form {
1365
+ .el-form-item {
1366
+ .el-form-item__content {
1367
+ .el-input {
1368
+ .el-input-group__prepend {
1369
+ background-color: #fff;
1370
+ }
1371
+ }
1372
+ }
1373
+
1374
+ .el-range-editor.el-input__inner {
1375
+ padding: 3px 16px;
1376
+ }
1377
+ }
1378
+
1379
+ &.el-form--inline {
1380
+ .el-form-item {
1381
+ margin-right: 23px;
1382
+
1383
+ .el-form-item__label {
1384
+ padding: 0;
1385
+ }
1386
+ }
1387
+ }
1388
+ }
1389
+
1390
+ .v-modal {
1391
+ opacity: 0.15 !important;
1392
+ z-index: 1777;
1393
+ }
1394
+