@jiaozhiye/qm-design-react 1.10.9 → 1.10.11
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/config-provider/src/config-provider.d.ts +2 -26
- package/lib/form/src/types.d.ts +2 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/scrollbar/index.d.ts +1 -1
- package/lib/search-tree/src/search-tree.d.ts +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/table/src/edit/index.d.ts +1 -0
- package/lib/table/src/hooks/useTableEffect.d.ts +3 -4
- package/lib/table/src/table/types.d.ts +1 -1
- package/lib/table/src/utils/index.d.ts +4 -1
- package/lib/upload-file/src/upload-file.d.ts +1 -1
- package/package.json +1 -1
package/lib/scrollbar/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CSSProperties, ComponentSize } from '../../_utils/types';
|
|
3
3
|
import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
|
|
4
|
-
import type
|
|
4
|
+
import { type TreeProps } from '../../antd';
|
|
5
5
|
type IProps = TreeProps<IRecord> & {
|
|
6
6
|
size?: ComponentSize;
|
|
7
7
|
filterable?: boolean;
|
package/lib/signature/index.d.ts
CHANGED
|
@@ -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,
|
|
3
|
+
import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps, IDerivedRowKeys } from '../table/types';
|
|
4
4
|
import type { ComponentSize } from '../../../_utils/types';
|
|
5
5
|
type IExtra = {
|
|
6
6
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
@@ -8,14 +8,13 @@ type IExtra = {
|
|
|
8
8
|
$size: ComponentSize;
|
|
9
9
|
scrollX: boolean;
|
|
10
10
|
pagination: IPagination;
|
|
11
|
-
selectionKeys:
|
|
12
|
-
rowExpandedKeys:
|
|
11
|
+
selectionKeys: IDerivedRowKeys;
|
|
12
|
+
rowExpandedKeys: IDerivedRowKeys;
|
|
13
13
|
highlightKey: IRowKey;
|
|
14
14
|
summationRows: Record<string, number | string>[];
|
|
15
15
|
showSummary: boolean;
|
|
16
16
|
isWebPagination: boolean;
|
|
17
17
|
isScrollPagination: boolean;
|
|
18
|
-
isTreeTable: boolean;
|
|
19
18
|
checkDataIndex: () => void;
|
|
20
19
|
toLastPage: () => void;
|
|
21
20
|
toFirstPage: () => void;
|
|
@@ -15,7 +15,7 @@ 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
|
|
18
|
+
export type IDerivedRowKeys = IRowKey[] & {
|
|
19
19
|
__prevent__?: boolean;
|
|
20
20
|
};
|
|
21
21
|
export declare const DEFAULT_DISTANCE = 10;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import dayjs, { Dayjs } from 'dayjs';
|
|
3
|
-
import type { IColumn, IDerivedRowKey, IRecord, IRowKey, ISorter } from '../table/types';
|
|
3
|
+
import type { IColumn, IDerivedRowKey, IDerivedRowKeys, IRecord, IRowKey, ISorter } from '../table/types';
|
|
4
4
|
import type { Nullable, AnyObject } from '../../../_utils/types';
|
|
5
5
|
export declare const columnsFlatMap: (columns: IColumn[]) => IColumn[];
|
|
6
6
|
export declare const createFilterColumns: (columns: IColumn[]) => IColumn[];
|
|
@@ -14,6 +14,9 @@ export declare const deepFindRowKey: (rowKeys: IDerivedRowKey[], mark: IRowKey)
|
|
|
14
14
|
export declare const tableDataFlatMap: (list: IRecord[]) => IRecord[];
|
|
15
15
|
export declare const getAllTableData: (list: IRecord[]) => IRecord[];
|
|
16
16
|
export declare const convertToRows: (columns: IColumn[]) => IColumn[][];
|
|
17
|
+
export declare const deepGetTreeRows: (treeData: IRecord[], fn: (row: IRecord) => boolean) => IRecord<any>[];
|
|
18
|
+
export declare const createPreventKeys: (rowKeys: IDerivedRowKeys) => IDerivedRowKeys;
|
|
19
|
+
export declare const deletePreventKey: (rowKeys: IDerivedRowKeys) => void;
|
|
17
20
|
export declare const getNodeOffset: (el: Nullable<HTMLElement>, container: HTMLElement, rest?: {
|
|
18
21
|
left: number;
|
|
19
22
|
top: number;
|
|
@@ -17,7 +17,7 @@ type IProps = Omit<UploadProps, 'onPreview'> & {
|
|
|
17
17
|
readOnly?: boolean;
|
|
18
18
|
draggable?: boolean;
|
|
19
19
|
editable?: boolean;
|
|
20
|
-
batchDownload?: (fileList: UploadFile[]) => Promise<void> | boolean;
|
|
20
|
+
batchDownload?: ((fileList: UploadFile[]) => Promise<void>) | boolean;
|
|
21
21
|
fileDirection?: 'horizontal' | 'vertical';
|
|
22
22
|
downloadWithHeaders?: boolean | HttpRequestHeader;
|
|
23
23
|
button?: {
|