@mptw/skylens-ui 1.3.14 → 1.3.16
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.
- package/components/SLTabs.vue +44 -2
- package/package.json +1 -1
package/components/SLTabs.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
ref='navComp'
|
|
13
13
|
)
|
|
14
14
|
slot
|
|
15
|
-
.tabs-nav-right(v-if='type === 1 && $slots["tabs-nav-right"]')
|
|
15
|
+
.tabs-nav-right(v-if='(type === 1 || type === 5) && $slots["tabs-nav-right"]')
|
|
16
16
|
slot(name='tabs-nav-right')
|
|
17
17
|
.tabs-content
|
|
18
18
|
SLDistributor
|
|
@@ -59,7 +59,7 @@ export default defineComponent({
|
|
|
59
59
|
type: {
|
|
60
60
|
type: Number,
|
|
61
61
|
default: 1,
|
|
62
|
-
validator: (value: number) => [1, 2, 3, 4].includes(value),
|
|
62
|
+
validator: (value: number) => [1, 2, 3, 4, 5].includes(value),
|
|
63
63
|
},
|
|
64
64
|
activeTab: {
|
|
65
65
|
type: Number,
|
|
@@ -381,8 +381,50 @@ export default defineComponent({
|
|
|
381
381
|
.tabs-content-body
|
|
382
382
|
@apply w-full
|
|
383
383
|
|
|
384
|
+
&.tabs-type-5
|
|
385
|
+
& > .tabs-nav
|
|
386
|
+
@apply relative flex items-start justify-between h-0 mb-4 space-x-8 overflow-hidden
|
|
387
|
+
@apply s('lg:space-x-30')
|
|
388
|
+
|
|
389
|
+
&.show
|
|
390
|
+
@apply h-auto
|
|
391
|
+
|
|
392
|
+
&:before
|
|
393
|
+
content ""
|
|
394
|
+
@apply absolute right-0 bottom-0 left-0 h-px s('rounded-[1px]') bg-primary-lighter
|
|
395
|
+
|
|
396
|
+
.tabs-nav-left
|
|
397
|
+
@apply flex-grow overflow-hidden
|
|
398
|
+
|
|
399
|
+
.tabs-nav-right
|
|
400
|
+
@apply flex-grow-0 flex-shrink-0
|
|
401
|
+
|
|
402
|
+
ul
|
|
403
|
+
@apply inline-flex items-start
|
|
404
|
+
|
|
405
|
+
.tab-nav-item
|
|
406
|
+
@apply relative
|
|
407
|
+
|
|
408
|
+
&.active
|
|
409
|
+
&:after
|
|
410
|
+
content ""
|
|
411
|
+
@apply block absolute right-0 bottom-0 left-0 h-1 s('rounded-[1px]') bg-primary
|
|
412
|
+
|
|
413
|
+
.tab-nav-item-link
|
|
414
|
+
@apply cursor-default
|
|
415
|
+
|
|
416
|
+
&-link
|
|
417
|
+
@apply relative block px-4 pb-2 text-lg text-gray-2
|
|
418
|
+
|
|
419
|
+
&-title
|
|
420
|
+
@apply truncate
|
|
421
|
+
|
|
422
|
+
.tab-pane
|
|
423
|
+
@apply space-y-8
|
|
424
|
+
|
|
384
425
|
& > .tabs-content
|
|
385
426
|
.tabs
|
|
386
427
|
& > .tabs-content
|
|
387
428
|
@apply shadow-md
|
|
388
429
|
</style>
|
|
430
|
+
|