@jiaozhiye/qm-design-react 1.9.13 → 1.9.14

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.
@@ -149,6 +149,6 @@ declare class Signature {
149
149
  toDataURL: (type?: string, quality?: number) => string;
150
150
  getPNG: () => string;
151
151
  getJPG: (quality?: number) => string;
152
- destroy: () => void;
152
+ destroy(): void;
153
153
  }
154
154
  export default Signature;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import TableManager from '../manager';
2
3
  import Store from '../store';
3
4
  import type { ScrollbarRef } from '../../../scrollbar/src/scrollbar';
4
5
  import type { getRowKeyType, IColumn, IDerivedRowKey, IFieldAuthItem, IMergeCell, InsertMode, IRecord, IRowKey, ITableProps } from '../table/types';
@@ -6,6 +7,7 @@ import type { ComponentSize, Nullable } from '../../../_utils/types';
6
7
  export type ITableRef = {
7
8
  props: ITableProps;
8
9
  uid: string;
10
+ tableManager: TableManager;
9
11
  elementStore: Record<string, Nullable<HTMLElement>>;
10
12
  originColumns: IColumn[];
11
13
  tableFullData: IRecord[];
@@ -84,6 +86,7 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
84
86
  clearRecordsMap: () => void;
85
87
  props: ITableProps;
86
88
  uid: string;
89
+ tableManager: TableManager;
87
90
  elementStore: Record<string, Nullable<HTMLElement>>;
88
91
  originColumns: IColumn[];
89
92
  tableFullData: IRecord[];
@@ -5,11 +5,13 @@ type Instance = {
5
5
  id: string;
6
6
  vm: React.ForwardedRef<TableRef>;
7
7
  };
8
- declare const TableManager: {
8
+ declare class TableManager {
9
+ instances: Instance[];
9
10
  getFocusInstance: () => Nullable<Instance>;
10
11
  getInstance: (id: string) => Nullable<Instance>;
11
12
  focus: (id: string) => void;
12
13
  register: (id: string, instance: React.ForwardedRef<TableRef>) => void;
13
14
  deregister: (id: string) => void;
14
- };
15
+ destroy(): void;
16
+ }
15
17
  export default TableManager;
@@ -27,7 +27,7 @@ declare class Store {
27
27
  addToRemoved: (data: any) => void;
28
28
  removeFromRemoved: (data: any) => void;
29
29
  clearAllLog: () => void;
30
- destroy: () => void;
30
+ destroy(): void;
31
31
  }
32
32
  export default Store;
33
33
  export type { Store };