@jiaozhiye/qm-design-react 1.6.1 → 1.6.3
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/_utils/resize-event.d.ts +2 -2
- package/lib/_utils/types.d.ts +15 -15
- package/lib/anchor/src/anchor-item.d.ts +3 -3
- package/lib/anchor/src/anchor-nav.d.ts +2 -2
- package/lib/anchor/src/anchor.d.ts +5 -5
- package/lib/antd/TimePicker.d.ts +1 -1
- package/lib/button/src/button.d.ts +4 -4
- package/lib/collapse/src/collapse.d.ts +2 -2
- package/lib/config-provider/context.d.ts +1 -1
- package/lib/config-provider/src/config-provider.d.ts +4 -4
- package/lib/copy-to-clipboard/src/copy-to-clipboard.d.ts +2 -2
- package/lib/countup/src/countup.d.ts +3 -3
- package/lib/cropper/src/cropper.d.ts +4 -4
- package/lib/divider/src/divider.d.ts +4 -4
- package/lib/download/src/download.d.ts +9 -9
- package/lib/drawer/src/drawer.d.ts +6 -6
- package/lib/empty/src/empty.d.ts +3 -3
- package/lib/form/src/context.d.ts +1 -1
- package/lib/form/src/fields-filter.d.ts +4 -4
- package/lib/form/src/form-cascader.d.ts +3 -3
- package/lib/form/src/form-checkbox-group.d.ts +3 -3
- package/lib/form/src/form-checkbox.d.ts +2 -2
- package/lib/form/src/form-city-select.d.ts +2 -2
- package/lib/form/src/form-date.d.ts +2 -2
- package/lib/form/src/form-divider.d.ts +2 -2
- package/lib/form/src/form-immediate.d.ts +3 -3
- package/lib/form/src/form-input-number.d.ts +2 -2
- package/lib/form/src/form-input.d.ts +2 -2
- package/lib/form/src/form-item-view.d.ts +1 -1
- package/lib/form/src/form-multiple-search-helper.d.ts +3 -3
- package/lib/form/src/form-multiple-tree-table-helper.d.ts +3 -3
- package/lib/form/src/form-radio.d.ts +3 -3
- package/lib/form/src/form-range-date.d.ts +2 -2
- package/lib/form/src/form-range-input-number.d.ts +2 -2
- package/lib/form/src/form-range-input.d.ts +2 -2
- package/lib/form/src/form-range-search-helper.d.ts +3 -3
- package/lib/form/src/form-range-time.d.ts +2 -2
- package/lib/form/src/form-rate.d.ts +2 -2
- package/lib/form/src/form-region-select.d.ts +2 -2
- package/lib/form/src/form-search-helper.d.ts +3 -3
- package/lib/form/src/form-select.d.ts +3 -3
- package/lib/form/src/form-switch.d.ts +2 -2
- package/lib/form/src/form-text-area.d.ts +2 -2
- package/lib/form/src/form-time.d.ts +2 -2
- package/lib/form/src/form-tinymce.d.ts +2 -2
- package/lib/form/src/form-tree-select.d.ts +3 -3
- package/lib/form/src/form-tree-table-helper.d.ts +3 -3
- package/lib/form/src/form-upload-file.d.ts +2 -2
- package/lib/form/src/form-upload-img.d.ts +2 -2
- package/lib/form/src/form.d.ts +14 -13
- package/lib/form/src/types.d.ts +28 -25
- package/lib/form/style/index.less +1 -1
- package/lib/hooks/useDebounce.d.ts +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/index.full.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/index.d.ts +2 -2
- package/lib/locale/index.js +5 -5
- package/lib/modal/src/modal.d.ts +6 -6
- package/lib/print/src/container.d.ts +2 -2
- package/lib/print/src/context.d.ts +1 -1
- package/lib/print/src/preview.d.ts +3 -3
- package/lib/print/src/print.d.ts +6 -6
- package/lib/print/src/setting.d.ts +3 -3
- package/lib/range-table-helper/src/range-table-helper.d.ts +3 -3
- package/lib/search-helper/src/search-helper.d.ts +3 -3
- package/lib/search-tree/src/search-tree.d.ts +3 -3
- package/lib/space/src/space.d.ts +3 -3
- package/lib/spin/src/spin.d.ts +4 -4
- package/lib/split/src/context.d.ts +1 -1
- package/lib/split/src/resize-bar.d.ts +1 -1
- package/lib/split/src/split-pane.d.ts +2 -2
- package/lib/split/src/split.d.ts +2 -2
- package/lib/style/index.css +2 -2
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/alert/index.d.ts +1 -1
- package/lib/table/src/body/index.d.ts +1 -1
- package/lib/table/src/body/useMergeCell.d.ts +2 -1
- package/lib/table/src/clipboard/index.d.ts +1 -1
- package/lib/table/src/clipboard/setting.d.ts +1 -1
- package/lib/table/src/column-filter/index.d.ts +1 -1
- package/lib/table/src/context/index.d.ts +1 -1
- package/lib/table/src/edit/InputNumber.d.ts +1 -1
- package/lib/table/src/edit/index.d.ts +1 -1
- package/lib/table/src/expandable/all.d.ts +1 -1
- package/lib/table/src/expandable/index.d.ts +1 -1
- package/lib/table/src/export/define.d.ts +1 -1
- package/lib/table/src/export/index.d.ts +2 -2
- package/lib/table/src/export/setting.d.ts +1 -1
- package/lib/table/src/export/useExport.d.ts +2 -2
- package/lib/table/src/fast-search/index.d.ts +1 -1
- package/lib/table/src/fast-search/setting.d.ts +1 -1
- package/lib/table/src/filter/index.d.ts +1 -1
- package/lib/table/src/footer/index.d.ts +1 -1
- package/lib/table/src/full-screen/index.d.ts +1 -1
- package/lib/table/src/group-summary/index.d.ts +1 -1
- package/lib/table/src/group-summary/result.d.ts +1 -1
- package/lib/table/src/group-summary/setting.d.ts +1 -1
- package/lib/table/src/header/index.d.ts +1 -1
- package/lib/table/src/hooks/useImperativeMethod.d.ts +1 -1
- package/lib/table/src/hooks/useTableCore.d.ts +1 -1
- package/lib/table/src/hooks/useTableEffect.d.ts +1 -1
- package/lib/table/src/hooks/useTableLayout.d.ts +1 -1
- package/lib/table/src/hooks/useTableMemo.d.ts +1 -1
- package/lib/table/src/hooks/useTableRef.d.ts +2 -2
- package/lib/table/src/hooks/useTableState.d.ts +1 -1
- package/lib/table/src/import/SelectFile.d.ts +1 -1
- package/lib/table/src/import/index.d.ts +1 -1
- package/lib/table/src/import/setting.d.ts +1 -1
- package/lib/table/src/manager/index.d.ts +1 -1
- package/lib/table/src/pager/index.d.ts +1 -1
- package/lib/table/src/print/index.d.ts +1 -1
- package/lib/table/src/reload/index.d.ts +1 -1
- package/lib/table/src/resizable/index.d.ts +1 -1
- package/lib/table/src/select-collection/index.d.ts +1 -1
- package/lib/table/src/select-collection/result.d.ts +1 -1
- package/lib/table/src/selection/all.d.ts +1 -1
- package/lib/table/src/selection/index.d.ts +1 -1
- package/lib/table/src/store/index.d.ts +2 -2
- package/lib/table/src/super-search/index.d.ts +1 -1
- package/lib/table/src/super-search/result.d.ts +1 -1
- package/lib/table/src/table/index.d.ts +1 -1
- package/lib/table/src/table/props.d.ts +5 -5
- package/lib/table/src/table/types.d.ts +45 -45
- package/lib/table/src/toolbox/index.d.ts +1 -1
- package/lib/tabs/src/tab-pane.d.ts +4 -4
- package/lib/tabs/src/tabs.d.ts +3 -3
- package/lib/tinymce/src/Events.d.ts +2 -2
- package/lib/tinymce/src/ScriptLoader.d.ts +1 -1
- package/lib/tinymce/src/Utils.d.ts +1 -1
- package/lib/tinymce/src/components/Editor.d.ts +1 -1
- package/lib/tinymce/src/components/EditorPropTypes.d.ts +2 -2
- package/lib/tinymce/src/index.d.ts +3 -3
- package/lib/tree-helper/src/tree-helper.d.ts +2 -2
- package/lib/tree-table-helper/src/tree-table-helper.d.ts +3 -3
- package/lib/upload-file/src/upload-file.d.ts +5 -5
- package/lib/upload-img/src/cropper-preview.d.ts +4 -4
- package/lib/upload-img/src/upload-img.d.ts +5 -5
- package/package.json +19 -19
|
@@ -3,7 +3,7 @@ import type { TableBodyRef, IColumn, IDerivedRowKey, IFetchParams, IPagination,
|
|
|
3
3
|
import type { ITableRef } from '../hooks/useTableRef';
|
|
4
4
|
import type { ITableState } from '../hooks/useTableState';
|
|
5
5
|
import type { ComponentSize } from '../../../_utils/types';
|
|
6
|
-
export
|
|
6
|
+
export type ITableContext = {
|
|
7
7
|
getRowKey: (row: IRecord, index: number) => IRowKey;
|
|
8
8
|
tableProps: ITableProps;
|
|
9
9
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IColumn, ToolMethodRef } from '../table/types';
|
|
3
|
-
export
|
|
3
|
+
export type IOptions = {
|
|
4
4
|
fileName: string;
|
|
5
5
|
fileType: 'xlsx' | 'csv';
|
|
6
6
|
sheetName: string;
|
|
@@ -11,7 +11,7 @@ export declare type IOptions = {
|
|
|
11
11
|
footSummation: boolean;
|
|
12
12
|
useStyle: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type ITableExportProps = {
|
|
15
15
|
tableColumns: IColumn[];
|
|
16
16
|
open?: boolean;
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IColumn, IRecord } from '../table/types';
|
|
2
2
|
import type { IOptions } from './index';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type IParamsFn1 = (columns: IColumn[], tableData: IRecord[]) => Record<string, number>[];
|
|
4
|
+
type IParamsFn2 = (row: IRecord, rowIndex: number, column: IColumn, columnIndex: number) => string | number;
|
|
5
5
|
declare const useExport: () => {
|
|
6
6
|
exportXLSX: (options: IOptions, dataList: IRecord[], calcSummationValues: IParamsFn1, renderCell: IParamsFn2) => Promise<Blob>;
|
|
7
7
|
exportCSV: (options: IOptions, tableHTML: string) => Blob;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ToolMethodRef } from '../table/types';
|
|
3
|
-
|
|
3
|
+
type IFastSearchProps = {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const FastSearch: React.ForwardRefExoticComponent<IFastSearchProps & React.RefAttributes<ToolMethodRef>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ToolMethodRef } from '../table/types';
|
|
3
|
-
|
|
3
|
+
type IGroupSummaryProps = {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const GroupSummary: React.ForwardRefExoticComponent<IGroupSummaryProps & React.RefAttributes<ToolMethodRef>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ITableRef } from './useTableRef';
|
|
3
3
|
import type { getRowKeyType, ITableProps, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef } from '../table/types';
|
|
4
|
-
|
|
4
|
+
type IExtra = {
|
|
5
5
|
getRowKey: getRowKeyType;
|
|
6
6
|
tableProps: ITableProps;
|
|
7
7
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
@@ -3,7 +3,7 @@ import type { ITableRef } from './useTableRef';
|
|
|
3
3
|
import type { ITableState } from './useTableState';
|
|
4
4
|
import type { getRowKeyType, IColumn, IDerivedRowKey, IFetchParams, IFieldAuthItem, IFilter, IPagination, IRecord, IRowKey, IRule, ISorter, ISuperFilter, ITableProps, IValidItem, TableBodyRef } 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>;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ITableRef } from './useTableRef';
|
|
3
3
|
import type { TableBodyRef, IColumn, IPagination, IRecord, IRowKey, ITableProps, IMergeCell } from '../table/types';
|
|
4
4
|
import type { ComponentSize } from '../../../_utils/types';
|
|
5
|
-
|
|
5
|
+
type IExtra = {
|
|
6
6
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
7
7
|
topElementRef: React.RefObject<HTMLDivElement>;
|
|
8
8
|
tableElementRef: React.RefObject<HTMLDivElement>;
|
|
@@ -4,7 +4,7 @@ import type { IColumn, IRecord, IRowKey, ITableProps } from '../table/types';
|
|
|
4
4
|
import type { ITableState } from './useTableState';
|
|
5
5
|
import type { ITableRef } from './useTableRef';
|
|
6
6
|
import type { ComponentSize } from '../../../_utils/types';
|
|
7
|
-
|
|
7
|
+
type IExtra = {
|
|
8
8
|
getRowKey: getRowKeyType;
|
|
9
9
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
10
10
|
$size: ComponentSize;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ITableProps, IColumn, IRecord, getRowKeyType, IFetchParams, ISorter, IFilter, IPagination, ISuperFilter } from '../table/types';
|
|
3
3
|
import type { ITableRef } from './useTableRef';
|
|
4
|
-
|
|
4
|
+
type IExtra = {
|
|
5
5
|
getRowKey: getRowKeyType;
|
|
6
6
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
7
7
|
tableFullData: IRecord[];
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import Store from '../store';
|
|
3
3
|
import type { getRowKeyType, IColumn, IDerivedRowKey, IFieldAuthItem, IMergeCell, InsertMode, IRecord, IRowKey, ITableProps } from '../table/types';
|
|
4
4
|
import type { ComponentSize, Nullable } from '../../../_utils/types';
|
|
5
|
-
export
|
|
5
|
+
export type ITableRef = {
|
|
6
6
|
uid: string;
|
|
7
7
|
elementStore: Record<string, Nullable<HTMLElement>>;
|
|
8
8
|
originColumns: IColumn[];
|
|
@@ -40,7 +40,7 @@ export declare type ITableRef = {
|
|
|
40
40
|
isOverlay: boolean;
|
|
41
41
|
isIE: boolean;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
type IExtra = {
|
|
44
44
|
getRowKey: getRowKeyType;
|
|
45
45
|
$size: ComponentSize;
|
|
46
46
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IFilter, IPagination, IRecord, IRowKey, ISorter, ISuperFilter, ITableProps } from '../table/types';
|
|
3
|
-
export
|
|
3
|
+
export type ITableState = {
|
|
4
4
|
tableData: IRecord[];
|
|
5
5
|
filters: IFilter;
|
|
6
6
|
sorter: ISorter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ToolMethodRef } from '../table/types';
|
|
3
|
-
|
|
3
|
+
type IReloadProps = {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const Reload: React.ForwardRefExoticComponent<IReloadProps & React.RefAttributes<ToolMethodRef>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IRecord } from '../table/types';
|
|
2
|
-
|
|
2
|
+
type IStoreItem = {
|
|
3
3
|
x: string;
|
|
4
4
|
y: string;
|
|
5
5
|
text: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type IStoreState = {
|
|
8
8
|
required: IStoreItem[];
|
|
9
9
|
validate: IStoreItem[];
|
|
10
10
|
edited: IStoreItem[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ToolMethodRef } from '../table/types';
|
|
3
|
-
|
|
3
|
+
type ISuperSearchProps = {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const SuperSearch: React.ForwardRefExoticComponent<ISuperSearchProps & React.RefAttributes<ToolMethodRef>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ITableProps, TableRef } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type QmTableProps = ITableProps;
|
|
4
4
|
declare const Table: React.ForwardRefExoticComponent<ITableProps & React.RefAttributes<TableRef>>;
|
|
5
5
|
export default Table;
|
|
@@ -76,12 +76,12 @@ export declare const propTypes: {
|
|
|
76
76
|
className: PropTypes.Requireable<string>;
|
|
77
77
|
theadClassName: PropTypes.Requireable<string>;
|
|
78
78
|
children: PropTypes.Requireable<any[]>;
|
|
79
|
-
sorter: PropTypes.Requireable<boolean | ((...args: any[]) => any)
|
|
79
|
+
sorter: PropTypes.Requireable<NonNullable<boolean | ((...args: any[]) => any) | null | undefined>>;
|
|
80
80
|
filter: PropTypes.Requireable<PropTypes.InferProps<{
|
|
81
81
|
type: PropTypes.Validator<string>;
|
|
82
82
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
83
83
|
text: PropTypes.Requireable<string>;
|
|
84
|
-
value: PropTypes.Requireable<string | number
|
|
84
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
85
85
|
}> | null | undefined)[]>;
|
|
86
86
|
style: PropTypes.Requireable<object>;
|
|
87
87
|
}>>;
|
|
@@ -92,7 +92,7 @@ export declare const propTypes: {
|
|
|
92
92
|
editRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
93
93
|
dictItems: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
94
94
|
text: PropTypes.Requireable<string>;
|
|
95
|
-
value: PropTypes.Requireable<string | number
|
|
95
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
96
96
|
}> | null | undefined)[]>;
|
|
97
97
|
summation: PropTypes.Requireable<PropTypes.InferProps<{
|
|
98
98
|
sumBySelection: PropTypes.Requireable<boolean>;
|
|
@@ -111,7 +111,7 @@ export declare const propTypes: {
|
|
|
111
111
|
}> | null | undefined)[]>;
|
|
112
112
|
columnsChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
113
113
|
dataSource: PropTypes.Requireable<any[]>;
|
|
114
|
-
rowKey: PropTypes.Validator<string | ((...args: any[]) => any)
|
|
114
|
+
rowKey: PropTypes.Validator<NonNullable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>>;
|
|
115
115
|
size: (props: any, propName: any, componentName: any) => void;
|
|
116
116
|
height: (props: any, propName: any, componentName: any) => void;
|
|
117
117
|
minHeight: (props: any, propName: any, componentName: any) => void;
|
|
@@ -167,7 +167,7 @@ export declare const propTypes: {
|
|
|
167
167
|
onSelectAll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
168
168
|
}>>;
|
|
169
169
|
rowHighlight: PropTypes.Requireable<PropTypes.InferProps<{
|
|
170
|
-
currentRowKey: PropTypes.Requireable<string | number
|
|
170
|
+
currentRowKey: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
171
171
|
disabled: PropTypes.Requireable<(...args: any[]) => any>;
|
|
172
172
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
173
173
|
}>>;
|