feat: release v1.0.0
This commit is contained in:
@@ -24,7 +24,7 @@ export function BaseTable<TData>({ table }: Props<TData>) {
|
||||
const pageSize = table.getState().pagination.pageSize
|
||||
const rowCount = table.options.rowCount
|
||||
const currentPageRowsLength = table.getCoreRowModel().rows.length
|
||||
const showLoading = table.options.meta?.showLoading
|
||||
const isFetching = table.options.meta?.isFetching
|
||||
|
||||
useEffect(() => {
|
||||
if (pageIndex > 0 && currentPageRowsLength === 0 && rowCount) {
|
||||
@@ -39,12 +39,12 @@ export function BaseTable<TData>({ table }: Props<TData>) {
|
||||
const isTree = !!table.options.getExpandedRowModel
|
||||
|
||||
return (
|
||||
<Loading visible={showLoading}>
|
||||
<div className='rounded-md border'>
|
||||
<Loading visible={isFetching}>
|
||||
<div className='border border-border/80 rounded-md'>
|
||||
<Table>
|
||||
<TableHeader>
|
||||
{table.getHeaderGroups().map((headerGroup) => (
|
||||
<TableRow key={headerGroup.id}>
|
||||
<TableRow key={headerGroup.id} className='bg-muted/50'>
|
||||
{headerGroup.headers.map((header) => (
|
||||
<TableHead
|
||||
key={header.id}
|
||||
|
||||
Reference in New Issue
Block a user