@magicbe/antd-crud 0.0.60 → 0.0.62
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.
- package/dist/interface.d.ts +2 -2
- package/package.json +1 -1
package/dist/interface.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export type ColumnFieldKeys = ColumnHiddenField["type"] | ColumnInputField["type
|
|
|
92
92
|
/**列 */
|
|
93
93
|
export interface ColumnType<RecordType = AnyObject> extends Omit<AntdColumnType<RecordType>, "dataIndex" | "title"> {
|
|
94
94
|
dataIndex?: string | string[];
|
|
95
|
-
title
|
|
95
|
+
title?: React.ReactNode;
|
|
96
96
|
field?: ColumnFieldKeys | ColumnField | React.FC;
|
|
97
97
|
filter?: boolean | ColumnFieldKeys | ColumnField | React.FC;
|
|
98
98
|
add?: boolean | ColumnFieldKeys | ColumnField | React.FC;
|
|
@@ -208,7 +208,7 @@ export type getPageData = () => ({
|
|
|
208
208
|
current?: number;
|
|
209
209
|
pageSize?: number;
|
|
210
210
|
});
|
|
211
|
-
export type loadRecords = (params
|
|
211
|
+
export type loadRecords = (params?: TablePaginationConfig, filter?: Record<string, any>, sorter?: SorterResult | SorterResult[], extra?: TableCurrentDataSource) => void;
|
|
212
212
|
export type getRecords<T = AnyObject> = () => T[];
|
|
213
213
|
export interface TableRef<RecordType = AnyObject> {
|
|
214
214
|
getPageData: getPageData;
|