Package
v4.x
Description
When using UTable with virtualize enabled, the measureElement option is accepted in TypeScript definitions but does not work at runtime. The callback is never invoked, and dynamic row heights cannot be measured.
This prevents accurate virtual scrolling for tables with highly variable row heights (e.g., expandable rows, rich content, images).
Additional context
<template>
<UTable
virtualize
:data="rows"
:columns="columns"
:virtualize="{
estimateSize: () => 65,
measureElement: (el) => {
console.log('❌ This never logs') // 永远不会执行
return el?.getBoundingClientRect().height || 65
}
}"
class="h-[500px]"
/>
</template>
Package
v4.x
Description
When using UTable with virtualize enabled, the measureElement option is accepted in TypeScript definitions but does not work at runtime. The callback is never invoked, and dynamic row heights cannot be measured.
This prevents accurate virtual scrolling for tables with highly variable row heights (e.g., expandable rows, rich content, images).
Additional context