@jiaozhiye/qm-design-react 1.12.1 → 1.12.2

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.
@@ -23,7 +23,6 @@ type IExtra = {
23
23
  scrollXToColumn: (dataIndex: string, index?: number) => void;
24
24
  scrollYToRecord: (rowKey: IRowKey, index?: number) => void;
25
25
  doFieldValidate: (rules: IRule[], val: unknown, rowKey: IRowKey, columnKey: string, columnTitle: string) => void;
26
- setTableOriginData: (records: IRecord[]) => void;
27
26
  setHandleState: (option: ITableRef['handleState']) => void;
28
27
  forceUpdate: () => void;
29
28
  setColumnsDefined: (value: boolean) => void;
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
2
  import type { ITableRef } from './useTableRef';
3
3
  import type { ITableState } from './useTableState';
4
- import type { getRowKeyType, IColumn, IFetchParams, IFieldAuthItem, IFilter, IPagination, IRecord, IRowKey, IRule, ISorter, ISuperFilter, ITableProps, IValidItem, TableBodyRef, IPageFilter } from '../table/types';
4
+ import type { getRowKeyType, IColumn, IFetchParams, IFieldAuthItem, IFilter, IPagination, IRecord, IRowKey, IRule, ISorter, ISuperFilter, ITableProps, IValidItem, IPageFilter } from '../table/types';
5
5
  import type { ComponentSize } from '../../../_utils/types';
6
6
  type IExtra = {
7
7
  getRowKey: getRowKeyType;
8
8
  tableRef: React.MutableRefObject<ITableRef>;
9
9
  tableElementRef: React.RefObject<HTMLElement>;
10
- tableBodyRef: React.RefObject<TableBodyRef>;
11
10
  $size: ComponentSize;
12
11
  tableColumns: IColumn[];
13
12
  flattenColumns: IColumn[];
@@ -54,6 +53,7 @@ type IExtra = {
54
53
  setSummaries: (option: ITableRef['summaries']) => void;
55
54
  setPermission: <T extends ITableState['permission']>(option: T | ((prev: T) => T)) => void;
56
55
  resetTableScroll: () => void;
56
+ createTableFocus: () => void;
57
57
  clearElementStore: () => void;
58
58
  };
59
59
  declare const useTableCore: <T extends ITableProps>(props: T, extra: IExtra) => {
@@ -62,7 +62,7 @@ declare const useTableCore: <T extends ITableProps>(props: T, extra: IExtra) =>
62
62
  createTableFullData: (list: IRecord[]) => void;
63
63
  createWebPageData: () => IRecord<any>[];
64
64
  getTableData: () => Promise<void>;
65
- createTableData: (list: IRecord[]) => void;
65
+ createTableData: (list: IRecord[], callback?: ((arr: IRecord[]) => void) | undefined) => void;
66
66
  createTableFlatData: () => void;
67
67
  createGroupData: (list: IRecord[]) => IRecord<any>[];
68
68
  createAllExpandedKeys: () => (string | number)[];
@@ -16,6 +16,8 @@ type IExtra = {
16
16
  leftFixedColumns: IColumn[];
17
17
  derivedMergeCells: IMergeCellItem[];
18
18
  tableFlatData: IRecord[];
19
+ selectionKeys: IRowKey[];
20
+ highlightKey: IRowKey;
19
21
  layout: ITableState['layout'];
20
22
  showFooter: boolean;
21
23
  showPagination: boolean;
@@ -36,6 +38,7 @@ declare const useTableLayout: <T extends ITableProps>(props: T, extra: IExtra) =
36
38
  scrollYToRecord: (rowKey: IRowKey, index?: number) => void;
37
39
  calcTableHeight: () => void;
38
40
  resetTableScroll: () => void;
41
+ createTableFocus: () => void;
39
42
  doLayout: () => void;
40
43
  };
41
44
  export default useTableLayout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",