@jiaozhiye/qm-design-react 1.9.16 → 1.9.17
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/lib/form/src/form-tree-select.d.ts +2 -1
- package/lib/hooks/useId.d.ts +2 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/table/src/hooks/useImperativeMethod.d.ts +0 -1
- package/lib/table/src/hooks/useTableEffect.d.ts +3 -4
- package/lib/table/src/hooks/useTableRef.d.ts +0 -3
- package/lib/table/src/table/types.d.ts +4 -1
- package/package.json +1 -1
|
@@ -33,7 +33,6 @@ type IExtra = {
|
|
|
33
33
|
setHighlightKey: (rowKey: IRowKey) => void;
|
|
34
34
|
setSelectionRows: (records: IRecord[]) => void;
|
|
35
35
|
setOriginColumns: (columns: IColumn[]) => void;
|
|
36
|
-
setHandleChange: (value: boolean) => void;
|
|
37
36
|
getTableLog: () => {
|
|
38
37
|
required: IValidItem[];
|
|
39
38
|
validate: IValidItem[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ITableRef } from './useTableRef';
|
|
3
|
-
import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps, IMergeCell } from '../table/types';
|
|
3
|
+
import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps, IDeriveRowKeys, IMergeCell } from '../table/types';
|
|
4
4
|
import type { ComponentSize } from '../../../_utils/types';
|
|
5
5
|
type IExtra = {
|
|
6
6
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
@@ -10,8 +10,8 @@ type IExtra = {
|
|
|
10
10
|
$size: ComponentSize;
|
|
11
11
|
scrollX: boolean;
|
|
12
12
|
pagination: IPagination;
|
|
13
|
-
selectionKeys:
|
|
14
|
-
rowExpandedKeys:
|
|
13
|
+
selectionKeys: IDeriveRowKeys;
|
|
14
|
+
rowExpandedKeys: IDeriveRowKeys;
|
|
15
15
|
highlightKey: IRowKey;
|
|
16
16
|
summationRows: Record<string, number | string>[];
|
|
17
17
|
showSummary: boolean;
|
|
@@ -32,7 +32,6 @@ type IExtra = {
|
|
|
32
32
|
setMergeCells: (values: IMergeCell[]) => void;
|
|
33
33
|
setPingRight: (value: boolean) => void;
|
|
34
34
|
setUnMounted: (value: boolean) => void;
|
|
35
|
-
setHandleChange: (value: boolean) => void;
|
|
36
35
|
calcTableHeight: () => void;
|
|
37
36
|
createSelectionKeys: (rowKeys?: IRowKey[]) => IRowKey[];
|
|
38
37
|
createRowExpandedKeys: (rowKeys?: IRowKey[]) => IRowKey[];
|
|
@@ -52,7 +52,6 @@ export type ITableRef = {
|
|
|
52
52
|
selectionRows: IRecord[];
|
|
53
53
|
recordsMap: Map<IRowKey, IRecord>;
|
|
54
54
|
unMounted: boolean;
|
|
55
|
-
isHandleChange: boolean;
|
|
56
55
|
isIE: boolean;
|
|
57
56
|
};
|
|
58
57
|
type IExtra = {
|
|
@@ -81,7 +80,6 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
81
80
|
setSelectionRows: (selectKeys: IRecord[]) => void;
|
|
82
81
|
setRecordsMap: (key: IRowKey, value: IRecord) => void;
|
|
83
82
|
setUnMounted: (value: boolean) => void;
|
|
84
|
-
setHandleChange: (value: boolean) => void;
|
|
85
83
|
clearElementStore: () => void;
|
|
86
84
|
clearRecordsMap: () => void;
|
|
87
85
|
props: ITableProps;
|
|
@@ -131,7 +129,6 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
131
129
|
selectionRows: IRecord[];
|
|
132
130
|
recordsMap: Map<IRowKey, IRecord>;
|
|
133
131
|
unMounted: boolean;
|
|
134
|
-
isHandleChange: boolean;
|
|
135
132
|
isIE: boolean;
|
|
136
133
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
137
134
|
};
|
|
@@ -15,6 +15,9 @@ export type IRecord<T = any> = {
|
|
|
15
15
|
};
|
|
16
16
|
export type getRowKeyType = (row: IRecord, index: number) => string | number;
|
|
17
17
|
export type IRowKey = ReturnType<getRowKeyType>;
|
|
18
|
+
export type IDeriveRowKeys = IRowKey[] & {
|
|
19
|
+
__prevent__?: boolean;
|
|
20
|
+
};
|
|
18
21
|
export declare const DEFAULT_DISTANCE = 10;
|
|
19
22
|
export declare const DEFAULT_TRUE_VALUE = "1";
|
|
20
23
|
export declare const DEFAULT_FALSE_VALUE = "0";
|
|
@@ -417,7 +420,7 @@ export type TableRef = {
|
|
|
417
420
|
DO_EXPORT: () => void;
|
|
418
421
|
SCROLL_TO_RECORD: (rowKey: IRowKey) => void;
|
|
419
422
|
SCROLL_TO_COLUMN: (dataIndex: string) => void;
|
|
420
|
-
SET_SELECTION: (rowKeys: IRowKey[],
|
|
423
|
+
SET_SELECTION: (rowKeys: IRowKey[], preventEvent?: boolean) => void;
|
|
421
424
|
SET_SELECTION_ROWS: (records: IRecord[]) => void;
|
|
422
425
|
SET_TABLE_DATA: (records: IRecord[]) => void;
|
|
423
426
|
SET_TABLE_COLUMN: (dataIndex: string, option: Record<string, any>, forceUpdate?: boolean) => void;
|