Virtual Single List
It's essentially a table with only one column, implemented through the following steps:
props.bordered=falseto remove the table border.props.headless=trueto remove the table header.props.rowActive=falseto remove row click highlighting.props.rowHover=falseto remove row hover styles.props.rowHeightto set row height.StkTableColumn['customCell']to customize cell content.
Code Example
ts
<StkTable
row-key="id"
style="height: 400px"
virtual
headless
:row-height="200"
:bordered="false"
:row-active="false"
:row-hover="false"
:columns="columns"
:data-source="data"
></StkTable>Examples
Equal Height
loading
Variable Height
Configure props.autoRowHeight to enable automatic row height.
Set the expected height through props.autoRowHeight.expectedHeight. By default, props.rowHeight is used as the expected height.
loading