diff --git a/src/components/Table/Table.tsx b/src/components/Table/Table.tsx index 3b25a0d..36587af 100755 --- a/src/components/Table/Table.tsx +++ b/src/components/Table/Table.tsx @@ -13,7 +13,7 @@ import '@styles/index.css' export type BaseTableColumn = ColumnGroupType | ColumnType export type TableColumns = OmitExtends, TableColumnSettings>[] -export type TableContainer = TableProps & { +export type TableContainer = Omit, 'columns'> & { columns: TableColumns tableName?: string showSettingsChanger?: boolean @@ -45,9 +45,9 @@ const _Table = ({ columns, dataSource, tableName, showSettings }), [settings, columns, onSettingsChanged, showSettingsChanger, tableName]) return ( - columns={newColumns} - dataSource={tryAddKeys(dataSource)} + dataSource={tryAddKeys(dataSource as any)} {...other} /> )