feat(table): Supports drag and drop sorting

This commit is contained in:
web@ppanel
2024-12-19 16:58:10 +07:00
parent 0befdb0864
commit 2f56ef5eec
6 changed files with 2926 additions and 8069 deletions
+6 -4
View File
@@ -1,11 +1,13 @@
'use client';
import { ProTable as _ProTable, ProTableProps } from '@repo/ui/pro-table';
import { useTranslations } from 'next-intl';
export { type ProTableActions } from '@repo/ui/pro-table';
export function ProTable<TData, TValue extends Record<string, unknown>>(
props: ProTableProps<TData, TValue>,
) {
export function ProTable<
TData extends Record<string, unknown>,
TValue extends Record<string, unknown>,
>(props: ProTableProps<TData, TValue>) {
const t = useTranslations('common.table');
return (
<_ProTable