init
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user