@magicbe/antd-crud 0.0.54 → 0.0.55
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/components/Table.js +2 -0
- package/dist/interface.d.ts +2 -0
- package/package.json +1 -1
package/dist/components/Table.js
CHANGED
|
@@ -206,8 +206,10 @@ var Table = React.forwardRef(function (_a, ref) {
|
|
|
206
206
|
}).finally(function () { return setLoading(false); });
|
|
207
207
|
};
|
|
208
208
|
var getPageData = function () { return ({ current: page, pageSize: size }); };
|
|
209
|
+
var getRecords = function () { return sources; };
|
|
209
210
|
useImperativeHandle(ref, function () { return ({
|
|
210
211
|
getPageData: getPageData,
|
|
212
|
+
getRecords: getRecords,
|
|
211
213
|
loadRecords: loadRecords,
|
|
212
214
|
selected_keys: selected_keys,
|
|
213
215
|
selected_rows: selected_rows,
|
package/dist/interface.d.ts
CHANGED
|
@@ -209,8 +209,10 @@ export type getPageData = () => ({
|
|
|
209
209
|
pageSize?: number;
|
|
210
210
|
});
|
|
211
211
|
export type loadRecords = (params?: any) => void;
|
|
212
|
+
export type getRecords = () => any[];
|
|
212
213
|
export interface TableRef {
|
|
213
214
|
getPageData: getPageData;
|
|
215
|
+
getRecords: getRecords;
|
|
214
216
|
loadRecords: loadRecords;
|
|
215
217
|
selected_keys: React.Key[];
|
|
216
218
|
selected_rows: AnyObject[];
|