@top-message/ui-lib 1.23.5 → 1.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CSSProperties, FC, MouseEvent } from 'react';
|
|
2
|
-
import { ColumnsType as AntColumnsType } from 'antd/lib/table';
|
|
2
|
+
import { ColumnsType as AntColumnsType, TableProps as AntTableProps } from 'antd/lib/table';
|
|
3
3
|
export type TableColumnsType = AntColumnsType<Record<string, unknown>>;
|
|
4
4
|
export type TableDataType = Record<string, unknown>[];
|
|
5
|
+
export type TableColumnChangeType = AntTableProps['onChange'];
|
|
5
6
|
type Props = {
|
|
6
7
|
data: TableDataType;
|
|
7
8
|
columns: TableColumnsType;
|
|
@@ -16,6 +17,7 @@ type Props = {
|
|
|
16
17
|
selectable?: boolean;
|
|
17
18
|
className?: string;
|
|
18
19
|
style?: CSSProperties;
|
|
20
|
+
onColumnChange?: TableColumnChangeType;
|
|
19
21
|
};
|
|
20
22
|
export declare const Table: FC<Props>;
|
|
21
23
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Table } from './Table';
|
|
2
|
-
export type { TableDataType, TableColumnsType } from './Table';
|
|
2
|
+
export type { TableDataType, TableColumnsType, TableColumnChangeType, } from './Table';
|