修复构建问题
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
export type ProxySourcesPageProps = {}
|
||||
|
||||
export default function ProxySourcesPage(props: ProxySourcesPageProps) {
|
||||
return <div></div>
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
type AccessorKeyColumnDef,
|
||||
type Column,
|
||||
type ColumnDef,
|
||||
flexRender,
|
||||
@@ -50,18 +51,18 @@ export function DataTable<T extends Record<string, unknown>>(
|
||||
columnPinning: {
|
||||
left: props.columns
|
||||
.map(column =>
|
||||
column.meta?.pin === "left"
|
||||
? column.id || column.accessorKey
|
||||
(column.meta as Record<string, unknown>)?.pin === "left"
|
||||
? column.id || (column as AccessorKeyColumnDef<T>).accessorKey
|
||||
: undefined,
|
||||
)
|
||||
.filter(Boolean),
|
||||
.filter(Boolean) as string[],
|
||||
right: props.columns
|
||||
.map(column =>
|
||||
column.meta?.pin === "right"
|
||||
? column.id || column.accessorKey
|
||||
(column.meta as Record<string, unknown>)?.pin === "right"
|
||||
? column.id || (column as AccessorKeyColumnDef<T>).accessorKey
|
||||
: undefined,
|
||||
)
|
||||
.filter(Boolean),
|
||||
.filter(Boolean) as string[],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user