message: chore: reuse useFormTable code
diff: @@ -8,3 +8,36 @@ export const fieldAdapter = (field: Field) => {
  resetFields: field.reset,
  } as UseAntdTableFormUtils;
  };
  +
  +export const resultAdapter = (result: any) => {
  + const tableProps = {
  + dataSource: result.tableProps.dataSource,
  + loading: result.tableProps.loading,
  + onSort: (dataIndex: String, order: String) => {
  + result.tableProps.onChange({ current: result.pagination.current, pageSize: result.pagination.pageSize }, result.filters, {
  + field: dataIndex,
  + order
  + })
  + },
  + onFilter: (filterParams: Object) => {
  + result.tableProps.onChange({ current: result.pagination.current, pageSize: result.pagination.pageSize }, filterParams, result.sorter);
  + },
  + };
  +
  + const paginationProps = {
  + onChange: (page: number) => {
  + console.log('llllll', page)
  + result.tableProps.onChange({ current: page, pageSize: result.pagination.pageSize }, result.filters, result.sorter);
  + },
  + onPageSizeChange: result.pagination.changePageSize,
  + current: result.pagination.current,
  + pageSize: result.pagination.pageSize,
  + total: result.pagination.total,
  + };
  +
  + return {
  + ...result,
  + tableProps,
  + paginationProps
  + }
  +}
  