pull/5677/head
mertsincan 2024-04-25 01:58:54 +01:00
parent 866643ef2b
commit dc84c394cc
3 changed files with 9 additions and 1 deletions

View File

@ -13,7 +13,7 @@
>
<component :is="templates.previousicon || 'ChevronLeftIcon'" aria-hidden="true" v-bind="ptm('previousIcon')" />
</button>
<div ref="content" :class="cx('content')" @scroll="onScroll" v-bind="ptm('content')">
<div ref="content" :class="cx('content')" @scroll="onScroll" :style="{ height: $pcTabs.scrollHeight }" v-bind="ptm('content')">
<div ref="tabs" :class="cx('tabs')" role="tablist" :aria-orientation="$pcTabs.orientation" v-bind="ptm('tabs')">
<slot></slot>
<span ref="inkbar" :class="cx('inkbar')" role="presentation" aria-hidden="true" v-bind="ptm('inkbar')"></span>

View File

@ -22,6 +22,10 @@ export default {
type: Boolean,
default: false
},
scrollHeight: {
type: String,
default: undefined
},
showNavigators: {
type: Boolean,
default: true

View File

@ -104,6 +104,10 @@ export interface TabsProps {
* @defaultValue false
*/
scrollable?: boolean | undefined;
/**
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
*/
scrollHeight?: string | undefined;
/**
* Whether to display navigation buttons in container when scrollable is enabled.
* @defaultValue true