vxe-pc-ui 4.6.35 → 4.6.37

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