@hw-component/table 1.10.55 → 1.10.57

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.
@@ -15,7 +15,7 @@ interface EditTableInitParams {
15
15
  table: EditTableInstance;
16
16
  actionRef: MutableRefObject<ActionType | undefined>;
17
17
  editableFormRef: MutableRefObject<EditableFormInstance | undefined>;
18
- request: (params: any) => Promise<void>;
18
+ request: (params?: any) => Promise<any>;
19
19
  }
20
20
  export declare const useEditTableInit: ({ table, actionRef, editableFormRef, request, }: EditTableInitParams) => void;
21
21
  interface ColProps extends HEditTableProps {
@@ -148,7 +148,7 @@ var useEditTableInit = function useEditTableInit(_ref4) {
148
148
  table.editableForm = (editableFormRef === null || editableFormRef === void 0 ? void 0 : editableFormRef.current) || {};
149
149
  table.reload = function () {
150
150
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
151
- request(params);
151
+ return request(params);
152
152
  };
153
153
  table.action = (actionRef === null || actionRef === void 0 ? void 0 : actionRef.current) || {};
154
154
  }, [actionRef, editableFormRef, table]);
@@ -6,7 +6,7 @@ import { ActionType, ProColumns } from "@ant-design/pro-table/lib/typing";
6
6
  export interface EditTableInstance {
7
7
  editableForm: EditableFormInstance | {};
8
8
  action: ActionType | {};
9
- reload: () => void;
9
+ reload: (params: any) => Promise<any>;
10
10
  }
11
11
  export interface HEditTableProps<T = any> extends Omit<EditableProTableProps<T, ParamsType>, "recordCreatorProps" | "request" | "pagination" | "dataSource"> {
12
12
  creatorButtonText?: string;
@@ -15,7 +15,7 @@ interface EditTableInitParams {
15
15
  table: EditTableInstance;
16
16
  actionRef: MutableRefObject<ActionType | undefined>;
17
17
  editableFormRef: MutableRefObject<EditableFormInstance | undefined>;
18
- request: (params: any) => Promise<void>;
18
+ request: (params?: any) => Promise<any>;
19
19
  }
20
20
  export declare const useEditTableInit: ({ table, actionRef, editableFormRef, request, }: EditTableInitParams) => void;
21
21
  interface ColProps extends HEditTableProps {
@@ -149,7 +149,7 @@ var useEditTableInit = function useEditTableInit(_ref4) {
149
149
  table.editableForm = (editableFormRef === null || editableFormRef === void 0 ? void 0 : editableFormRef.current) || {};
150
150
  table.reload = function () {
151
151
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
152
- request(params);
152
+ return request(params);
153
153
  };
154
154
  table.action = (actionRef === null || actionRef === void 0 ? void 0 : actionRef.current) || {};
155
155
  }, [actionRef, editableFormRef, table]);
@@ -6,7 +6,7 @@ import { ActionType, ProColumns } from "@ant-design/pro-table/lib/typing";
6
6
  export interface EditTableInstance {
7
7
  editableForm: EditableFormInstance | {};
8
8
  action: ActionType | {};
9
- reload: () => void;
9
+ reload: (params: any) => Promise<any>;
10
10
  }
11
11
  export interface HEditTableProps<T = any> extends Omit<EditableProTableProps<T, ParamsType>, "recordCreatorProps" | "request" | "pagination" | "dataSource"> {
12
12
  creatorButtonText?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.10.55",
3
+ "version": "1.10.57",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -104,7 +104,7 @@ interface EditTableInitParams {
104
104
  table: EditTableInstance;
105
105
  actionRef: MutableRefObject<ActionType | undefined>;
106
106
  editableFormRef: MutableRefObject<EditableFormInstance | undefined>;
107
- request: (params:any)=>Promise<void>;
107
+ request: (params?:any)=>Promise<any>;
108
108
  }
109
109
 
110
110
  export const useEditTableInit = ({
@@ -120,7 +120,7 @@ export const useEditTableInit = ({
120
120
 
121
121
  table.editableForm = editableFormRef?.current || {};
122
122
  table.reload = (params={}) => {
123
- request(params);
123
+ return request(params);
124
124
  };
125
125
  table.action = actionRef?.current || {};
126
126
  }, [actionRef, editableFormRef, table]);
@@ -10,7 +10,7 @@ import { ActionType, ProColumns } from "@ant-design/pro-table/lib/typing";
10
10
  export interface EditTableInstance {
11
11
  editableForm: EditableFormInstance | {};
12
12
  action: ActionType | {};
13
- reload: () => void;
13
+ reload: (params:any) => Promise<any>;
14
14
  }
15
15
 
16
16
  export interface HEditTableProps<T = any>