修复小问题
parent
6a28a0fa58
commit
155b817346
|
@ -62,8 +62,14 @@ export function useTable(tableProps?: Props): [
|
|||
return table as TableActionType;
|
||||
}
|
||||
|
||||
function getTableRef(){
|
||||
return tableRef;
|
||||
}
|
||||
|
||||
const methods: TableActionType & {
|
||||
getForm: () => FormActionType;
|
||||
} & {
|
||||
getTableRef: () => any;
|
||||
} = {
|
||||
reload: async (opt?: FetchParams) => {
|
||||
return await getTableInstance().reload(opt);
|
||||
|
@ -153,6 +159,9 @@ export function useTable(tableProps?: Props): [
|
|||
collapseAll: () => {
|
||||
getTableInstance().collapseAll();
|
||||
},
|
||||
getTableRef: () => {
|
||||
return getTableRef();
|
||||
}
|
||||
};
|
||||
|
||||
return [register, methods];
|
||||
|
|
Loading…
Reference in New Issue