This commit is contained in:
alsaze
2025-11-19 16:32:30 +03:00
parent 565adbd9b7
commit 1321ccaad1
3 changed files with 5 additions and 26 deletions

View File

@@ -2,6 +2,7 @@
<div
ref="tableContainerRef"
class="table-wrapper"
:style="{ height, width }"
>
<div :style="{ height: `${totalSize}px` }">
<table>
@@ -67,6 +68,8 @@ import { useVirtualizer } from '@tanstack/vue-virtual'
const props = defineProps<{
tableData: any[]
columns: ColumnDef<any>[]
height: string
width: string
}>()
const table = useVueTable({
@@ -112,9 +115,7 @@ function measureElement(el?: Element) {
position: relative;
margin-top: calc(40px + 10px);
border-radius: 14px;
overflow-y: auto;
height: 600px;
scrollbar-width: thin;
overflow: auto;
@include mobile {
height: 500px;