Table
A component for displaying data in rows and columns, supporting sorting, selection, and pagination.
Component Features
- 📋 Column Configuration: Configurable columns with
title,key,width,fixed,sortableprops. - ✅ Row Selection: Supports single and multiple row selection via checkbox column.
- ↕️ Sorting: Supports single and multiple column sorting.
- 🎨 Custom Rendering: Supports custom cell rendering via scoped slots.
- 📌 Fixed Columns: Supports fixed left and right columns.
- 🎨 Styling: Supports row, cell, and column-level custom styling.
- 📄 Pagination: Supports external pagination integration.
- 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Basic Usage
The most basic usage of the table.
Selection
Add row-selection property to enable multiple selection.
Sorting
Set sortable: true in the column configuration to enable sorting.
Advanced Usage
A comprehensive example including pagination, sorting, loading state, striped rows, borders, and custom column rendering.