feat: release v1.0.0

This commit is contained in:
2026-07-29 22:10:33 +08:00
parent 3abf272e33
commit 97235386ca
98 changed files with 2389 additions and 467 deletions

View File

@@ -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}