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
rowKey="id"
style={{ height: 400 }}
virtual
headless
rowHeight={200}
bordered={false}
rowActive={false}
rowHover={false}
columns={columns}
dataSource={data}
/>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