DataTable VirtualScroller pt fix

pull/4004/head
Tuğçe Küçükoğlu 2023-05-26 09:25:56 +03:00
parent ab61270c11
commit 062142f54e
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@
<div class="p-datatable-wrapper" :style="{ maxHeight: virtualScrollerDisabled ? scrollHeight : '' }" v-bind="ptm('wrapper')"> <div class="p-datatable-wrapper" :style="{ maxHeight: virtualScrollerDisabled ? scrollHeight : '' }" v-bind="ptm('wrapper')">
<DTVirtualScroller <DTVirtualScroller
ref="virtualScroller" ref="virtualScroller"
v-bind="{ ...virtualScrollerOptions, ...ptm('virtualScroller') }" v-bind="virtualScrollerOptions"
:items="processedData" :items="processedData"
:columns="columns" :columns="columns"
:style="scrollHeight !== 'flex' ? { height: scrollHeight } : undefined" :style="scrollHeight !== 'flex' ? { height: scrollHeight } : undefined"
@ -58,6 +58,7 @@
inline inline
autoSize autoSize
:showSpacer="false" :showSpacer="false"
:pt="ptm('virtualScroller')"
> >
<template #content="slotProps"> <template #content="slotProps">
<table ref="table" role="table" :class="tableStyleClass" :style="[tableStyle, slotProps.spacerStyle]" v-bind="{ ...tableProps, ...ptm('table') }"> <table ref="table" role="table" :class="tableStyleClass" :style="[tableStyle, slotProps.spacerStyle]" v-bind="{ ...tableProps, ...ptm('table') }">