vxe-pc-ui 4.6.35 → 4.6.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/style.css +1 -1
  3. package/es/style.min.css +1 -1
  4. package/es/tabs/src/tabs.js +290 -89
  5. package/es/tabs/style.css +431 -156
  6. package/es/tabs/style.min.css +1 -1
  7. package/es/ui/index.js +3 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/es/vxe-tabs/style.css +431 -156
  10. package/es/vxe-tabs/style.min.css +1 -1
  11. package/lib/icon/style/style.css +1 -1
  12. package/lib/icon/style/style.min.css +1 -1
  13. package/lib/index.umd.js +310 -84
  14. package/lib/index.umd.min.js +1 -1
  15. package/lib/style.css +1 -1
  16. package/lib/style.min.css +1 -1
  17. package/lib/tabs/src/tabs.js +306 -82
  18. package/lib/tabs/src/tabs.min.js +1 -1
  19. package/lib/tabs/style/style.css +431 -156
  20. package/lib/tabs/style/style.min.css +1 -1
  21. package/lib/ui/index.js +3 -1
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/lib/vxe-tabs/style/style.css +431 -156
  26. package/lib/vxe-tabs/style/style.min.css +1 -1
  27. package/package.json +1 -1
  28. package/packages/tabs/src/tabs.ts +299 -90
  29. package/packages/ui/index.ts +2 -0
  30. package/styles/components/tabs.scss +534 -183
  31. package/types/components/tabs.d.ts +22 -6
  32. package/types/ui/global-icon.d.ts +2 -0
  33. /package/es/icon/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  34. /package/es/icon/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  35. /package/es/icon/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
  36. /package/es/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  37. /package/es/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  38. /package/es/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
  39. /package/lib/icon/style/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  40. /package/lib/icon/style/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  41. /package/lib/icon/style/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
  42. /package/lib/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  43. /package/lib/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  44. /package/lib/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
@@ -2,13 +2,15 @@
2
2
 
3
3
  .vxe-tabs {
4
4
  display: flex;
5
- flex-direction: column;
6
5
  color: var(--vxe-ui-font-color);
7
6
  font-family: var(--vxe-ui-font-family);
8
- &.is--padding {
9
- .vxe-tabs-pane--item {
10
- padding: var(--vxe-ui-layout-padding-default);
11
- }
7
+ &.pos--top,
8
+ &.pos--bottom {
9
+ flex-direction: column;
10
+ }
11
+ &.pos--left,
12
+ &.pos--right {
13
+ flex-direction: row;
12
14
  }
13
15
  &.trigger--default {
14
16
  .vxe-tabs-header--item {
@@ -22,10 +24,6 @@
22
24
  }
23
25
  }
24
26
 
25
- .vxe-tabs-header {
26
- display: flex;
27
- flex-direction: row;
28
- }
29
27
  .vxe-tabs-header--bar {
30
28
  position: relative;
31
29
  display: flex;
@@ -33,15 +31,10 @@
33
31
  align-items: center;
34
32
  justify-content: center;
35
33
  flex-shrink: 0;
36
- width: 2em;
37
- border: 1px solid var(--vxe-ui-input-border-color);
38
34
  cursor: pointer;
39
35
  &::after {
40
36
  content: "";
41
37
  position: absolute;
42
- top: 0;
43
- width: 1px;
44
- height: 100%;
45
38
  background-color: var(--vxe-ui-input-border-color);
46
39
  z-index: 3;
47
40
  }
@@ -50,57 +43,244 @@
50
43
  }
51
44
  &:hover {
52
45
  color: var(--vxe-ui-font-primary-lighten-color);
53
- background-color: var(--vxe-ui-font-tinge-color);
54
46
  }
55
47
  &:active {
56
48
  color: var(--vxe-ui-font-primary-darken-color);
57
49
  }
50
+ &.type--default,
51
+ &.type--card,
52
+ &.type--border-card,
53
+ &.type--round-card {
54
+ border: 1px solid var(--vxe-ui-input-border-color);
55
+ }
56
+ &.type--round-card {
57
+ background-color: rgba(0, 0, 0, 0.02);
58
+ }
59
+ &.pos--top,
60
+ &.pos--bottom {
61
+ width: 1.6em;
62
+ &::after {
63
+ top: 0;
64
+ width: 1px;
65
+ height: 100%;
66
+ }
67
+ }
68
+ &.pos--left,
69
+ &.pos--right {
70
+ width: 100%;
71
+ height: 1.6em;
72
+ &::after {
73
+ left: 0;
74
+ width: 100%;
75
+ height: 1px;
76
+ }
77
+ }
58
78
  }
59
- .vxe-tabs-header--left-bar {
60
- border-right: 0;
61
- box-shadow: 8px 0px 10px -5px var(--vxe-ui-tabs-bar-scrolling-box-shadow-color);
62
- &::after {
63
- right: -1px;
79
+ .vxe-tabs-header--prev-bar {
80
+ &.type--default {
81
+ &.pos--top,
82
+ &.pos--bottom {
83
+ border-right: 0;
84
+ }
85
+ &.pos--left,
86
+ &.pos--right {
87
+ border-bottom: 0;
88
+ }
89
+ }
90
+ &.type--card {
91
+ &.pos--top {
92
+ border-bottom: 0;
93
+ border-right: 0;
94
+ }
95
+ &.pos--bottom {
96
+ border-top: 0;
97
+ border-right: 0;
98
+ }
99
+ &.pos--left {
100
+ border-left: 0;
101
+ border-bottom: 0;
102
+ }
103
+ &.pos--right {
104
+ border-right: 0;
105
+ border-bottom: 0;
106
+ }
107
+ }
108
+ &.type--border-card {
109
+ &.pos--top {
110
+ border-top: 0;
111
+ border-right: 0;
112
+ }
113
+ &.pos--bottom {
114
+ border-right: 0;
115
+ border-bottom: 0;
116
+ }
117
+ &.pos--left {
118
+ border-left: 0;
119
+ border-bottom: 0;
120
+ }
121
+ &.pos--right {
122
+ border-right: 0;
123
+ border-bottom: 0;
124
+ }
125
+ }
126
+ &.type--round-card {
127
+ &.pos--top {
128
+ border-right: 0;
129
+ }
130
+ &.pos--bottom {
131
+ border-right: 0;
132
+ }
133
+ &.pos--left {
134
+ border-bottom: 0;
135
+ }
136
+ &.pos--right {
137
+ border-bottom: 0;
138
+ }
139
+ }
140
+ &.pos--top,
141
+ &.pos--bottom {
142
+ &::after {
143
+ right: 0;
144
+ }
145
+ }
146
+ &.pos--left,
147
+ &.pos--right {
148
+ &::after {
149
+ bottom: 0;
150
+ }
151
+ }
152
+ &.scrolling--middle {
153
+ &.pos--top,
154
+ &.pos--bottom {
155
+ box-shadow: 4px 0px 6px 0 var(--vxe-ui-tabs-bar-scrolling-box-shadow-color);
156
+ }
157
+ &.pos--left,
158
+ &.pos--right {
159
+ box-shadow: 0 4px 6px 0 var(--vxe-ui-tabs-bar-scrolling-box-shadow-color);
160
+ }
64
161
  }
65
162
  }
66
- .vxe-tabs-header--right-bar {
67
- border-left: 0;
68
- box-shadow: -8px 0px 10px -5px var(--vxe-ui-tabs-bar-scrolling-box-shadow-color);
69
- &::after {
70
- left: -1px;
163
+ .vxe-tabs-header--next-bar {
164
+ &.type--default {
165
+ &.pos--top,
166
+ &.pos--bottom {
167
+ border-left: 0;
168
+ }
169
+ &.pos--left,
170
+ &.pos--right {
171
+ border-top: 0;
172
+ }
173
+ }
174
+ &.type--card {
175
+ &.pos--top {
176
+ border-top: 0;
177
+ border-left: 0;
178
+ }
179
+ &.pos--bottom {
180
+ border-bottom: 0;
181
+ border-left: 0;
182
+ }
183
+ &.pos--left {
184
+ border-top: 0;
185
+ border-right: 0;
186
+ }
187
+ &.pos--right {
188
+ border-top: 0;
189
+ border-left: 0;
190
+ }
191
+ }
192
+ &.type--border-card {
193
+ &.pos--top {
194
+ border-left: 0;
195
+ border-top: 0;
196
+ }
197
+ &.pos--bottom {
198
+ border-left: 0;
199
+ border-bottom: 0;
200
+ }
201
+ &.pos--left {
202
+ border-left: 0;
203
+ border-top: 0;
204
+ }
205
+ &.pos--right {
206
+ border-right: 0;
207
+ border-top: 0;
208
+ }
209
+ }
210
+ &.type--round-card {
211
+ &.pos--top {
212
+ border-left: 0;
213
+ }
214
+ &.pos--bottom {
215
+ border-left: 0;
216
+ border-bottom: 0;
217
+ }
218
+ &.pos--left {
219
+ border-top: 0;
220
+ }
221
+ &.pos--right {
222
+ border-top: 0;
223
+ }
224
+ }
225
+ &.pos--top,
226
+ &.pos--bottom {
227
+ &::after {
228
+ left: 0;
229
+ }
230
+ }
231
+ &.pos--left,
232
+ &.pos--right {
233
+ &::after {
234
+ top: 0;
235
+ }
236
+ }
237
+ &.scrolling--middle {
238
+ &.pos--top,
239
+ &.pos--bottom {
240
+ box-shadow: -4px 0px 6px 0 var(--vxe-ui-tabs-bar-scrolling-box-shadow-color);
241
+ }
242
+ &.pos--left,
243
+ &.pos--right {
244
+ box-shadow: 0 -4px 6px 0 var(--vxe-ui-tabs-bar-scrolling-box-shadow-color);
245
+ }
71
246
  }
72
247
  }
73
- .vxe-tabs-header--extra {
248
+
249
+ .vxe-tabs-header--prefix,
250
+ .vxe-tabs-header--suffix {
74
251
  display: flex;
75
252
  flex-direction: row;
76
253
  align-items: center;
77
254
  justify-content: center;
78
255
  flex-shrink: 0;
79
- border-bottom: 1px solid var(--vxe-ui-input-border-color);
80
256
  }
81
257
 
82
- .vxe-tabs-header--wrapper {
83
- position: relative;
84
- flex-grow: 1;
85
- &::after {
86
- content: "";
87
- position: absolute;
88
- left: 0;
89
- bottom: 0;
90
- width: 100%;
91
- height: 1px;
92
- background-color: var(--vxe-ui-input-border-color);
93
- z-index: 0;
258
+ .vxe-tabs-header--prefix,
259
+ .vxe-tabs-header--suffix {
260
+ &.type--default,
261
+ &.type--border-card,
262
+ &.type--round-card {
263
+ &.pos--top {
264
+ border-bottom: 1px solid var(--vxe-ui-input-border-color);
265
+ }
266
+ &.pos--bottom {
267
+ border-top: 1px solid var(--vxe-ui-input-border-color);
268
+ }
269
+ &.pos--left {
270
+ border-right: 1px solid var(--vxe-ui-input-border-color);
271
+ }
272
+ &.pos--right {
273
+ border-left: 1px solid var(--vxe-ui-input-border-color);
274
+ }
94
275
  }
95
276
  }
277
+
96
278
  .vxe-tabs-header--item-wrapper {
97
279
  position: relative;
98
280
  display: flex;
99
- flex-direction: row;
100
- overflow-y: hidden;
101
- overflow-x: auto;
102
281
  outline: 0;
103
282
  }
283
+
104
284
  .vxe-tabs-header--item {
105
285
  position: relative;
106
286
  flex-shrink: 0;
@@ -119,6 +299,84 @@
119
299
  &.align--right {
120
300
  text-align: right;
121
301
  }
302
+ &.type--card {
303
+ &.pos--top {
304
+ border-top: 1px solid var(--vxe-ui-input-border-color);
305
+ }
306
+ &.pos--bottom {
307
+ border-bottom: 1px solid var(--vxe-ui-input-border-color);
308
+ }
309
+ &.pos--top,
310
+ &.pos--bottom {
311
+ border-right: 1px solid var(--vxe-ui-input-border-color);
312
+ &:first-child {
313
+ border-left: 1px solid var(--vxe-ui-input-border-color);
314
+ }
315
+ }
316
+ &.pos--left {
317
+ border-left: 1px solid var(--vxe-ui-input-border-color);
318
+ }
319
+ &.pos--right {
320
+ border-right: 1px solid var(--vxe-ui-input-border-color);
321
+ }
322
+ &.pos--left,
323
+ &.pos--right {
324
+ border-bottom: 1px solid var(--vxe-ui-input-border-color);
325
+ &:first-child {
326
+ border-top: 1px solid var(--vxe-ui-input-border-color);
327
+ }
328
+ }
329
+ }
330
+ &.type--border-card {
331
+ &.is--active {
332
+ background-color: var(--vxe-ui-layout-background-color);
333
+ }
334
+ }
335
+ &.type--round-card {
336
+ z-index: 2;
337
+ border: 1px solid var(--vxe-ui-input-border-color);
338
+ background-color: rgba(0, 0, 0, 0.02);
339
+ @include baseMixin.createAnimationTransition(color, .3s);
340
+ &.is--active {
341
+ background-color: var(--vxe-ui-layout-background-color);
342
+ }
343
+ &.pos--top {
344
+ border-bottom: 0;
345
+ border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
346
+ }
347
+ &.pos--bottom {
348
+ border-top: 0;
349
+ border-radius: 0 0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius);
350
+ }
351
+ &.pos--top,
352
+ &.pos--bottom {
353
+ margin: 0 2px;
354
+ &:first-child {
355
+ margin-left: 0;
356
+ }
357
+ &:last-child {
358
+ margin-right: 0;
359
+ }
360
+ }
361
+ &.pos--left {
362
+ border-right: 0;
363
+ border-radius: var(--vxe-ui-base-border-radius) 0 0 var(--vxe-ui-base-border-radius);
364
+ }
365
+ &.pos--right {
366
+ border-left: 0;
367
+ border-radius: 0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0;
368
+ }
369
+ &.pos--left,
370
+ &.pos--right {
371
+ margin: 2px 0;
372
+ &:first-child {
373
+ margin-top: 0;
374
+ }
375
+ &:last-child {
376
+ margin-bottom: 0;
377
+ }
378
+ }
379
+ }
122
380
  }
123
381
  .vxe-tabs-header--item-inner {
124
382
  display: flex;
@@ -127,6 +385,10 @@
127
385
  }
128
386
  .vxe-tabs-header--item-content {
129
387
  flex-grow: 1;
388
+ max-width: 30em;
389
+ overflow: hidden;
390
+ text-overflow: ellipsis;
391
+ white-space: nowrap;
130
392
  }
131
393
  .vxe-tabs-header--item-icon {
132
394
  padding: 0 0.6em;
@@ -157,14 +419,51 @@
157
419
  font-size: 1em;
158
420
  }
159
421
  }
422
+ .vxe-tabs-header--refresh-btn {
423
+ visibility: hidden;
424
+ &.is--active {
425
+ visibility: visible;
426
+ }
427
+ }
160
428
  .vxe-tabs-header--item-inner {
161
429
  @include baseMixin.createAnimationTransition(color, .1s);
162
430
  }
163
431
 
164
- .vxe-tabs-pane {
432
+ .vxe-tabs-pane--wrapper {
433
+ display: flex;
434
+ flex-direction: column;
435
+ flex-grow: 1;
436
+ overflow: hidden;
437
+ }
438
+ .vxe-tabs-pane--body {
165
439
  flex-grow: 1;
166
440
  overflow: hidden;
441
+ &.is--padding {
442
+ padding: var(--vxe-ui-layout-padding-default);
443
+ }
444
+ &.type--border-card,
445
+ &.type--round-card {
446
+ border: 1px solid var(--vxe-ui-input-border-color);
447
+ &.pos--top {
448
+ border-top: 0;
449
+ }
450
+ &.pos--bottom {
451
+ border-bottom: 0;
452
+ }
453
+ &.pos--left {
454
+ border-left: 0;
455
+ }
456
+ &.pos--right {
457
+ border-right: 0;
458
+ }
459
+ }
167
460
  }
461
+ .vxe-tabs-pane--top,
462
+ .vxe-tabs-pane--footer {
463
+ flex-shrink: 0;
464
+ overflow: auto;
465
+ }
466
+
168
467
  .vxe-tabs-pane--item {
169
468
  display: none;
170
469
  height: 100%;
@@ -174,190 +473,242 @@
174
473
  display: block;
175
474
  }
176
475
  }
476
+
477
+ .vxe-tabs-header {
478
+ display: flex;
479
+ &.pos--top,
480
+ &.pos--bottom {
481
+ flex-direction: row;
482
+ }
483
+ &.pos--left,
484
+ &.pos--right {
485
+ flex-direction: column;
486
+ }
487
+ &.type--card {
488
+ &.pos--top {
489
+ border-bottom: 1px solid var(--vxe-ui-input-border-color);
490
+ }
491
+ &.pos--bottom {
492
+ border-top: 1px solid var(--vxe-ui-input-border-color);
493
+ }
494
+ &.pos--left {
495
+ border-right: 1px solid var(--vxe-ui-input-border-color);
496
+ }
497
+ &.pos--right {
498
+ border-left: 1px solid var(--vxe-ui-input-border-color);
499
+ }
500
+ }
501
+ &.type--border-card {
502
+ background-color: var(--vxe-ui-tabs-card-header-background-color);
503
+ border: 1px solid var(--vxe-ui-input-border-color);
504
+ &.pos--top {
505
+ border-bottom: 0;
506
+ }
507
+ &.pos--bottom {
508
+ border-top: 0;
509
+ }
510
+ &.pos--left {
511
+ border-right: 0;
512
+ }
513
+ &.pos--right {
514
+ border-left: 0;
515
+ }
516
+ }
517
+ }
518
+ .vxe-tabs-header--wrapper {
519
+ position: relative;
520
+ flex-grow: 1;
521
+ overflow: hidden;
522
+ &.type--default,
523
+ &.type--border-card ,
524
+ &.type--round-card {
525
+ position: relative;
526
+ &::after {
527
+ content: "";
528
+ position: absolute;
529
+ background-color: var(--vxe-ui-input-border-color);
530
+ z-index: 0;
531
+ }
532
+ &.pos--top {
533
+ &::after {
534
+ bottom: 0;
535
+ }
536
+
537
+ }
538
+ &.pos--bottom {
539
+ &::after {
540
+ top: 0;
541
+ }
542
+ }
543
+ &.pos--top,
544
+ &.pos--bottom {
545
+ &::after {
546
+ left: 0;
547
+ width: 100%;
548
+ height: 1px;
549
+ }
550
+ }
551
+ &.pos--left {
552
+ &::after {
553
+ right: 0;
554
+ }
555
+
556
+ }
557
+ &.pos--right {
558
+ &::after {
559
+ left: 0;
560
+ }
561
+ }
562
+ &.pos--left,
563
+ &.pos--right {
564
+ &::after {
565
+ top: 0;
566
+ width: 1px;
567
+ height: 100%;
568
+ }
569
+ }
570
+ }
571
+ &.type--border-card {
572
+ &.pos--top {
573
+ border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
574
+ }
575
+ &.pos--bottom {
576
+ border-radius: 0 0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius);
577
+ }
578
+ }
579
+ &.type--border-card,
580
+ &.type--round-card {
581
+ & > .vxe-tabs-header--item-wrapper {
582
+ z-index: 2;
583
+ }
584
+ }
585
+ &.pos--top,
586
+ &.pos--bottom {
587
+ height: var(--vxe-ui-tabs-header-height-default);
588
+ .vxe-tabs-header--item-wrapper {
589
+ flex-direction: row;
590
+ width: 100%;
591
+ overflow-y: hidden;
592
+ overflow-x: auto;
593
+ }
594
+ }
595
+ &.pos--left,
596
+ &.pos--right {
597
+ .vxe-tabs-header--item-wrapper {
598
+ flex-direction: column;
599
+ height: 100%;
600
+ overflow-y: auto;
601
+ overflow-x: hidden;
602
+ }
603
+ }
604
+ }
605
+
177
606
  .vxe-tabs-header--active-line {
178
607
  display: none;
179
608
  &.type--default {
180
609
  display: block;
181
610
  position: absolute;
182
- bottom: 0;
183
- left: 0;
184
- height: 2px;
185
- width: 4px;
186
611
  background-color: var(--vxe-ui-font-primary-color);
187
612
  z-index: 2;
188
613
  @include baseMixin.createAnimationTransition(all, .3s);
614
+ &.pos--top {
615
+ bottom: 0;
616
+ }
617
+ &.pos--bottom {
618
+ top: 0;
619
+ }
620
+ &.pos--top,
621
+ &.pos--bottom {
622
+ left: 0;
623
+ height: 2px;
624
+ width: 4px;
625
+ }
626
+ &.pos--left {
627
+ right: 0;
628
+ }
629
+ &.pos--right {
630
+ left: 0;
631
+ }
632
+ &.pos--left,
633
+ &.pos--right {
634
+ top: 0;
635
+ height: 4px;
636
+ width: 2px;
637
+ }
189
638
  }
190
639
  &.type--card {
191
640
  display: block;
192
641
  position: absolute;
193
642
  top: 0;
194
643
  left: 0;
195
- width: 4px;
196
644
  border: 1px solid var(--vxe-ui-font-primary-color);
197
645
  pointer-events: none;
198
646
  z-index: 1;
199
647
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
200
- transition: color,left 0.3s ease-in-out;
648
+ &.pos--top,
649
+ &.pos--bottom {
650
+ width: 4px;
651
+ transition: color,left 0.3s ease-in-out;
652
+ }
653
+ &.pos--left,
654
+ &.pos--right {
655
+ width: 100%;
656
+ transition: color,top 0.3s ease-in-out;
657
+ }
201
658
  }
202
659
  &.type--border-card {
203
660
  display: block;
204
661
  position: absolute;
205
662
  top: 0;
206
663
  left: 0;
207
- width: 4px;
208
- border-left: 1px solid var(--vxe-ui-input-border-color);
209
- border-right: 1px solid var(--vxe-ui-input-border-color);
210
664
  pointer-events: none;
211
665
  z-index: 1;
212
- }
213
- }
214
-
215
- .vxe-tabs--default,
216
- .vxe-tabs--card,
217
- .vxe-tabs--border-card,
218
- .vxe-tabs--round-card {
219
- border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
220
- background-color: var(--vxe-ui-layout-background-color);
221
- }
222
-
223
- .vxe-tabs--default {
224
- .vxe-tabs-header--item-inner {
225
- border-bottom: 2px solid transparent;
226
- }
227
- }
228
-
229
- .vxe-tabs--card {
230
- .vxe-tabs-header--bar {
231
- border-top: 0;
232
- }
233
- .vxe-tabs-header--left-bar {
234
- border-left: 0;
235
- }
236
- .vxe-tabs-header--right-bar {
237
- border-right: 0;
238
- }
239
- .vxe-tabs-header {
240
- border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
241
- border-top: 1px solid var(--vxe-ui-input-border-color);
242
- border-left: 1px solid var(--vxe-ui-input-border-color);
243
- border-right: 1px solid var(--vxe-ui-input-border-color);
244
- .vxe-tabs-header--wrapper {
245
- border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
246
- }
247
- }
248
- .vxe-tabs-header--item {
249
- border-left: 1px solid var(--vxe-ui-input-border-color);
250
- &:first-child {
251
- border-left: 0;
252
- }
253
- &:last-child {
254
- border-right: 1px solid var(--vxe-ui-input-border-color);
255
- }
256
- }
257
- }
258
- .vxe-tabs--border-card {
259
- .vxe-tabs-header--item-wrapper {
260
- z-index: 2;
261
- }
262
- .vxe-tabs-header--bar {
263
- border-top: 0;
264
- }
265
- .vxe-tabs-header--left-bar {
266
- border-left: 0;
267
- }
268
- .vxe-tabs-header--right-bar {
269
- border-right: 0;
270
- }
271
- &.is--padding,
272
- &.is--height {
273
- .vxe-tabs-pane--item {
274
- border-bottom: 1px solid var(--vxe-ui-input-border-color);
666
+ &.pos--top,
667
+ &.pos--bottom {
668
+ width: 4px;
275
669
  border-left: 1px solid var(--vxe-ui-input-border-color);
276
670
  border-right: 1px solid var(--vxe-ui-input-border-color);
277
671
  }
278
- }
279
- .vxe-tabs-pane--item {
280
- &.has--content {
672
+ &.pos--left,
673
+ &.pos--right {
674
+ width: 100%;
675
+ border-top: 1px solid var(--vxe-ui-input-border-color);
281
676
  border-bottom: 1px solid var(--vxe-ui-input-border-color);
282
- border-left: 1px solid var(--vxe-ui-input-border-color);
283
- border-right: 1px solid var(--vxe-ui-input-border-color);
284
- }
285
- }
286
- .vxe-tabs-header {
287
- border-top: 1px solid var(--vxe-ui-input-border-color);
288
- border-left: 1px solid var(--vxe-ui-input-border-color);
289
- border-right: 1px solid var(--vxe-ui-input-border-color);
290
- background-color: var(--vxe-ui-tabs-card-header-background-color);
291
- .vxe-tabs-header--wrapper {
292
- border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
293
- }
294
- }
295
- .vxe-tabs-header--item {
296
- &.is--active {
297
- background-color: var(--vxe-ui-layout-background-color);
298
677
  }
299
678
  }
300
679
  }
301
680
 
302
- .vxe-tabs--round-card {
303
- .vxe-tabs-header--item-wrapper {
304
- z-index: 2;
305
- }
306
- .vxe-tabs-header--item {
307
- position: relative;
308
- z-index: 2;
309
- margin: 0 2px;
310
- border-top: 1px solid var(--vxe-ui-input-border-color);
311
- border-left: 1px solid var(--vxe-ui-input-border-color);
312
- border-right: 1px solid var(--vxe-ui-input-border-color);
313
- border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
314
- background-color: rgba(0, 0, 0, 0.02);
315
- @include baseMixin.createAnimationTransition(color, .3s);
316
- &.is--active {
317
- background-color: var(--vxe-ui-layout-background-color);
318
- }
319
- &:first-child {
320
- margin-left: 0;
321
- }
322
- &:last-child {
323
- margin-right: 0;
324
- }
325
- }
326
- &.is--padding,
327
- &.is--height {
328
- .vxe-tabs-pane--item {
329
- border-bottom: 1px solid var(--vxe-ui-input-border-color);
330
- border-left: 1px solid var(--vxe-ui-input-border-color);
331
- border-right: 1px solid var(--vxe-ui-input-border-color);
332
- }
333
- }
334
- .vxe-tabs-pane--item {
335
- &.has--content {
336
- border-bottom: 1px solid var(--vxe-ui-input-border-color);
337
- border-left: 1px solid var(--vxe-ui-input-border-color);
338
- border-right: 1px solid var(--vxe-ui-input-border-color);
339
- }
340
- }
341
- .vxe-tabs-pane {
342
- background-color: var(--vxe-ui-layout-background-color);
343
- }
344
- }
345
-
346
681
  .vxe-tabs {
347
- .vxe-tabs-header--wrapper {
348
- height: var(--vxe-ui-tabs-header-height-default);
349
- overflow: hidden;
350
- }
351
682
  .vxe-tabs-header--item-inner {
352
683
  height: var(--vxe-ui-tabs-header-height-default);
353
684
  }
354
685
  .vxe-tabs-header--active-line {
355
686
  &.type--card {
356
- height: calc(var(--vxe-ui-tabs-header-height-default) - 1px);
687
+ height: var(--vxe-ui-tabs-header-height-default);
357
688
  }
358
689
  &.type--border-card {
359
690
  height: calc(var(--vxe-ui-tabs-header-height-default) + 1px);
360
691
  line-height: calc(var(--vxe-ui-tabs-header-height-default) + 1px);
361
692
  }
362
693
  }
694
+ }
695
+
696
+ .vxe-tabs--default,
697
+ .vxe-tabs--card,
698
+ .vxe-tabs--border-card,
699
+ .vxe-tabs--round-card {
700
+ border-radius: var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0 0;
701
+ background-color: var(--vxe-ui-layout-background-color);
702
+ }
703
+
704
+ .vxe-tabs--default {
705
+ .vxe-tabs-header--item-inner {
706
+ border-bottom: 2px solid transparent;
707
+ }
708
+ }
709
+ .vxe-tabs--card,
710
+ .vxe-tabs--round-card {
711
+ .vxe-tabs-header--item-inner {
712
+ height: calc(var(--vxe-ui-tabs-header-height-default) - 1px);
713
+ }
363
714
  }