TabView pt fixes

pull/3868/head
Tuğçe Küçükoğlu 2023-04-14 11:04:15 +03:00
parent ce5dcdea9d
commit 0c6e828c0d
1 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@
v-bind="{ ...previousButtonProps, ...ptm('prevbutton') }" v-bind="{ ...previousButtonProps, ...ptm('prevbutton') }"
> >
<slot name="previcon"> <slot name="previcon">
<component :is="prevIcon ? 'span' : 'ChevronLeftIcon'" v-bind="ptm('previcon')" aria-hidden="true" :class="prevIcon" /> <component :is="prevIcon ? 'span' : 'ChevronLeftIcon'" aria-hidden="true" :class="prevIcon" v-bind="ptm('previcon')" />
</slot> </slot>
</button> </button>
<div ref="content" class="p-tabview-nav-content" @scroll="onScroll" v-bind="ptm('navcontent')"> <div ref="content" class="p-tabview-nav-content" @scroll="onScroll" v-bind="ptm('navcontent')">
@ -59,7 +59,7 @@
v-bind="{ ...nextButtonProps, ...ptm('nextbutton') }" v-bind="{ ...nextButtonProps, ...ptm('nextbutton') }"
> >
<slot name="nexticon"> <slot name="nexticon">
<component :is="nextIcon ? 'span' : 'ChevronRightIcon'" v-bind="ptm('nexticon')" aria-hidden="true" :class="nextIcon" /> <component :is="nextIcon ? 'span' : 'ChevronRightIcon'" aria-hidden="true" :class="nextIcon" v-bind="ptm('nexticon')" />
</slot> </slot>
</button> </button>
</div> </div>
@ -87,6 +87,7 @@ import ChevronLeftIcon from 'primevue/icon/chevronleft';
import ChevronRightIcon from 'primevue/icon/chevronright'; import ChevronRightIcon from 'primevue/icon/chevronright';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';
import { DomHandler, UniqueComponentId } from 'primevue/utils'; import { DomHandler, UniqueComponentId } from 'primevue/utils';
export default { export default {
name: 'TabView', name: 'TabView',
extends: BaseComponent, extends: BaseComponent,