@hw-component/table 1.10.57 → 1.10.59
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/es/EditTable/hooks.d.ts +1 -1
- package/es/EditTable/hooks.js +1 -1
- package/es/EditTable/modal.d.ts +1 -1
- package/lib/EditTable/hooks.d.ts +1 -1
- package/lib/EditTable/hooks.js +1 -1
- package/lib/EditTable/modal.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/EditTable/hooks.ts +2 -2
- package/src/components/EditTable/modal.ts +1 -1
package/es/EditTable/hooks.d.ts
CHANGED
|
@@ -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
|
|
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 {
|
package/es/EditTable/hooks.js
CHANGED
package/es/EditTable/modal.d.ts
CHANGED
|
@@ -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: (params
|
|
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/lib/EditTable/hooks.d.ts
CHANGED
|
@@ -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
|
|
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 {
|
package/lib/EditTable/hooks.js
CHANGED
package/lib/EditTable/modal.d.ts
CHANGED
|
@@ -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: (params
|
|
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
|
@@ -21,7 +21,7 @@ export const useListRequest = ({
|
|
|
21
21
|
return {
|
|
22
22
|
params: {
|
|
23
23
|
current: 1,
|
|
24
|
-
|
|
24
|
+
size: 10,
|
|
25
25
|
},
|
|
26
26
|
sorter: {},
|
|
27
27
|
};
|
|
@@ -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
|
|
107
|
+
request: (params:any)=>Promise<any>;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
export const useEditTableInit = ({
|
|
@@ -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: (params
|
|
13
|
+
reload: (params?:any) => Promise<any>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface HEditTableProps<T = any>
|