@jiaozhiye/qm-design-react 1.7.15 → 1.7.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/antd/Calendar.d.ts +1 -1
- package/lib/form/src/types.d.ts +1 -0
- package/lib/form/src/utils.d.ts +1 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/style/compact.css +10 -8
- package/lib/style/compact.min.css +1 -1
- package/lib/style/index.css +10 -8
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/table/props.d.ts +3 -0
- package/lib/table/src/table/types.d.ts +3 -1
- package/lib/table/src/utils/index.d.ts +2 -1
- package/package.json +3 -3
|
@@ -41,6 +41,7 @@ import type { ITableProps } from './types';
|
|
|
41
41
|
* width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
42
42
|
* onlySelect: PropTypes.bool,
|
|
43
43
|
* autoQueryAssign: PropTypes.bool,
|
|
44
|
+
* combinedDataIndex: PropTypes.string,
|
|
44
45
|
* fieldAliasMap: PropTypes.func,
|
|
45
46
|
* filterAliasMap: PropTypes.func,
|
|
46
47
|
* beforeOpen: PropTypes.func,
|
|
@@ -263,6 +264,7 @@ export declare const propTypes: {
|
|
|
263
264
|
onRowContextmenu: PropTypes.Requireable<(...args: any[]) => any>;
|
|
264
265
|
onRowEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
265
266
|
onScrollEnd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
267
|
+
onFetchError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
266
268
|
onMergeChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
267
269
|
};
|
|
268
270
|
export declare const defaultProps: ITableProps;
|
|
@@ -276,6 +278,7 @@ export declare const defaultProps: ITableProps;
|
|
|
276
278
|
* onRowContextmenu: 行右键单击事件,row, column, event
|
|
277
279
|
* onRowEnter: 行选中(单选) 或 行高亮 回车时触发,参数 row, event
|
|
278
280
|
* onScrollEnd: 滚动条滚动至底部时触发,参数 event
|
|
281
|
+
* onFetchError: 后端分页时,查询接口错误时触发,参数 error
|
|
279
282
|
*/
|
|
280
283
|
/**
|
|
281
284
|
* 方法:
|
|
@@ -140,6 +140,7 @@ export type IEditerReturn = {
|
|
|
140
140
|
onlySelect?: boolean;
|
|
141
141
|
autoQueryAssign?: boolean;
|
|
142
142
|
closeRemoteMatch?: boolean;
|
|
143
|
+
combinedDataIndex?: string;
|
|
143
144
|
fieldAliasMap?: (() => Record<string, string>) | Record<string, string>;
|
|
144
145
|
filterAliasMap?: (() => string[]) | string[];
|
|
145
146
|
beforeOpen?: (value: Record<string, string | number>, row: IRecord, column: IColumn) => void | Promise<void> | boolean;
|
|
@@ -162,7 +163,7 @@ export type IFetch = {
|
|
|
162
163
|
afterFetch?: (records: IRecord[]) => IRecord[];
|
|
163
164
|
stopToFirst?: boolean;
|
|
164
165
|
dataKey?: string;
|
|
165
|
-
callback?: (resData:
|
|
166
|
+
callback?: (resData: AjaxResponse['data'], response?: AjaxResponse) => void;
|
|
166
167
|
};
|
|
167
168
|
export type IRowSelection = {
|
|
168
169
|
type: ISelectionType;
|
|
@@ -393,6 +394,7 @@ export type ITableProps = {
|
|
|
393
394
|
onRowContextmenu?: (row: IRecord, column: IColumn, event: React.MouseEvent<HTMLTableCellElement>) => void;
|
|
394
395
|
onRowEnter?: (row: IRecord, event: KeyboardEvent) => void;
|
|
395
396
|
onScrollEnd?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
397
|
+
onFetchError?: (error: any) => void;
|
|
396
398
|
onMergeChange?: (cells: IMergeCell[]) => void;
|
|
397
399
|
};
|
|
398
400
|
export type TableRef = {
|
|
@@ -24,7 +24,8 @@ export declare const difference: <T extends AnyObject<any>>(obj: T, base: T) =>
|
|
|
24
24
|
export declare const isArrayContain: (targetArr: unknown[], arr: unknown[]) => boolean;
|
|
25
25
|
export declare const getCellValue: (record: IRecord, dataIndex: string) => any;
|
|
26
26
|
export declare const setCellValue: (record: IRecord, dataIndex: string, val: unknown, precision?: number) => void;
|
|
27
|
-
export declare const getSplitValue: (record: IRecord, key: string) =>
|
|
27
|
+
export declare const getSplitValue: (record: IRecord, key: string) => string;
|
|
28
|
+
export declare const setSplitValue: (record: IRecord, key: string, val: string, precision?: number) => void;
|
|
28
29
|
export declare const formatNumber: (value: number | string) => string;
|
|
29
30
|
export declare const validateNumber: (val: string) => boolean;
|
|
30
31
|
export declare const stringToNumber: (input: string) => number | '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.17",
|
|
4
4
|
"description": "A Component Library for React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"add-dom-event-listener": "^1.1.0",
|
|
53
|
-
"antd": "4.24.
|
|
53
|
+
"antd": "4.24.12",
|
|
54
54
|
"axios": "^0.27.2",
|
|
55
55
|
"big.js": "^6.2.1",
|
|
56
56
|
"china-area-data": "^5.0.1",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"style-loader": "^3.3.2",
|
|
126
126
|
"ts-loader": "^9.4.2",
|
|
127
127
|
"typescript": "^4.9.5",
|
|
128
|
-
"webpack": "^5.
|
|
128
|
+
"webpack": "^5.88.0",
|
|
129
129
|
"webpack-cli": "^5.1.4",
|
|
130
130
|
"webpack-dev-server": "^4.15.0",
|
|
131
131
|
"webpack-node-externals": "^3.0.0"
|