I am currently using Element UI Table in my project and I am trying to incorporate vue-virtual-scroller with it.
I have encountered a challenge because all the virtual scroller examples I've come across expect the loop to be run on the list item or table row element / component.
However, with Element UI, the rows are rendered implicitly based on the column components passed to the default slot of el-table
.
For example:
<el-table
:data="tableData"
style="width: 100%">
<el-table-column
prop="date"
label="Date"
width="180">
</el-table-column>
<el-table-column
prop="name"
label="Name"
width="180">
</el-table-column>
<el-table>
This setup has left me unsure about how to control the row rendering or wrap a row inside a virtual scroller.
Is there any workaround for this, or should I look into using another table library that allows row-based rendering?