Skip to content

Commit 285ea90

Browse files
Tuan TTuan T
authored andcommitted
fix: vue table example
1 parent bb2dbc2 commit 285ea90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/vue/table/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
</thead>
4848
<tbody>
4949
<tr
50-
v-for="virtualRow in virtualRows"
50+
v-for="(virtualRow, index) in virtualRows"
5151
:key="virtualRow.key"
52-
:style="{ transform: `translateY(${virtualRow.start}px)` }"
52+
:style="{ transform: `translateY(${virtualRow.start - index * virtualRow.size}px)` }"
5353
>
5454
<td
5555
v-for="cell in rows[virtualRow.index].getVisibleCells()"

0 commit comments

Comments
 (0)