DataTable VirtualScroller pt fix
parent
ab61270c11
commit
062142f54e
|
@ -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') }">
|
||||||
|
|
Loading…
Reference in New Issue