@jiaozhiye/qm-design-react 1.7.16 → 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/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 +2 -0
- package/lib/table/src/table/types.d.ts +2 -1
- package/package.json +2 -2
|
@@ -264,6 +264,7 @@ export declare const propTypes: {
|
|
|
264
264
|
onRowContextmenu: PropTypes.Requireable<(...args: any[]) => any>;
|
|
265
265
|
onRowEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
266
266
|
onScrollEnd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
267
|
+
onFetchError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
267
268
|
onMergeChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
268
269
|
};
|
|
269
270
|
export declare const defaultProps: ITableProps;
|
|
@@ -277,6 +278,7 @@ export declare const defaultProps: ITableProps;
|
|
|
277
278
|
* onRowContextmenu: 行右键单击事件,row, column, event
|
|
278
279
|
* onRowEnter: 行选中(单选) 或 行高亮 回车时触发,参数 row, event
|
|
279
280
|
* onScrollEnd: 滚动条滚动至底部时触发,参数 event
|
|
281
|
+
* onFetchError: 后端分页时,查询接口错误时触发,参数 error
|
|
280
282
|
*/
|
|
281
283
|
/**
|
|
282
284
|
* 方法:
|
|
@@ -163,7 +163,7 @@ export type IFetch = {
|
|
|
163
163
|
afterFetch?: (records: IRecord[]) => IRecord[];
|
|
164
164
|
stopToFirst?: boolean;
|
|
165
165
|
dataKey?: string;
|
|
166
|
-
callback?: (resData:
|
|
166
|
+
callback?: (resData: AjaxResponse['data'], response?: AjaxResponse) => void;
|
|
167
167
|
};
|
|
168
168
|
export type IRowSelection = {
|
|
169
169
|
type: ISelectionType;
|
|
@@ -394,6 +394,7 @@ export type ITableProps = {
|
|
|
394
394
|
onRowContextmenu?: (row: IRecord, column: IColumn, event: React.MouseEvent<HTMLTableCellElement>) => void;
|
|
395
395
|
onRowEnter?: (row: IRecord, event: KeyboardEvent) => void;
|
|
396
396
|
onScrollEnd?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
397
|
+
onFetchError?: (error: any) => void;
|
|
397
398
|
onMergeChange?: (cells: IMergeCell[]) => void;
|
|
398
399
|
};
|
|
399
400
|
export type TableRef = {
|
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",
|