@jiaozhiye/qm-design-react 1.7.16 → 1.7.18
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/context/index.d.ts +1 -1
- package/lib/table/src/hooks/useTableCore.d.ts +2 -2
- package/lib/table/src/hooks/useTableMemo.d.ts +1 -1
- package/lib/table/src/table/props.d.ts +3 -0
- package/lib/table/src/table/types.d.ts +4 -1
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ export type ITableContext = {
|
|
|
13
13
|
editableColumns: IColumn[];
|
|
14
14
|
leftFixedColumns: IColumn[];
|
|
15
15
|
rightFixedColumns: IColumn[];
|
|
16
|
-
|
|
16
|
+
treeExpandIndex: string;
|
|
17
17
|
sorter: ITableState['sorter'];
|
|
18
18
|
filters: ITableState['filters'];
|
|
19
19
|
superFilters: ITableState['superFilters'];
|
|
@@ -64,8 +64,8 @@ declare const useTableCore: <T extends ITableProps>(props: T, extra: IExtra) =>
|
|
|
64
64
|
createSelectionKeys: (rowKeys?: IRowKey[]) => (string | number)[];
|
|
65
65
|
createSelectionRows: (selectedKeys: IRowKey[]) => IRecord<any>[];
|
|
66
66
|
createRowExpandedKeys: (rowKeys?: IRowKey[]) => (string | number)[];
|
|
67
|
-
findParentRowKeys: (
|
|
68
|
-
getAllChildRowKeys: (
|
|
67
|
+
findParentRowKeys: (deriveRowKeyList: IDerivedRowKey[], key: IRowKey) => (string | number)[];
|
|
68
|
+
getAllChildRowKeys: (deriveRowKeyList: IDerivedRowKey[]) => (string | number)[];
|
|
69
69
|
doFieldValidate: (rules: IRule[], val: unknown, rowKey: IRowKey, columnKey: string) => void;
|
|
70
70
|
getTableLog: () => {
|
|
71
71
|
required: IValidItem[];
|
|
@@ -23,7 +23,7 @@ declare const useTableMemo: <T extends ITableProps>(props: T, extra: IExtra) =>
|
|
|
23
23
|
summationColumns: IColumn[];
|
|
24
24
|
leftFixedColumns: IColumn[];
|
|
25
25
|
rightFixedColumns: IColumn[];
|
|
26
|
-
|
|
26
|
+
treeExpandIndex: string;
|
|
27
27
|
showSummary: boolean;
|
|
28
28
|
showFooter: boolean;
|
|
29
29
|
isHeadGroup: boolean;
|
|
@@ -177,6 +177,7 @@ export declare const propTypes: {
|
|
|
177
177
|
}>>;
|
|
178
178
|
treeConfig: PropTypes.Requireable<PropTypes.InferProps<{
|
|
179
179
|
virtual: PropTypes.Requireable<boolean>;
|
|
180
|
+
expandIconColumn: PropTypes.Requireable<string>;
|
|
180
181
|
}>>;
|
|
181
182
|
expandable: PropTypes.Requireable<PropTypes.InferProps<{
|
|
182
183
|
defaultExpandAllRows: PropTypes.Requireable<boolean>;
|
|
@@ -264,6 +265,7 @@ export declare const propTypes: {
|
|
|
264
265
|
onRowContextmenu: PropTypes.Requireable<(...args: any[]) => any>;
|
|
265
266
|
onRowEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
266
267
|
onScrollEnd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
268
|
+
onFetchError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
267
269
|
onMergeChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
268
270
|
};
|
|
269
271
|
export declare const defaultProps: ITableProps;
|
|
@@ -277,6 +279,7 @@ export declare const defaultProps: ITableProps;
|
|
|
277
279
|
* onRowContextmenu: 行右键单击事件,row, column, event
|
|
278
280
|
* onRowEnter: 行选中(单选) 或 行高亮 回车时触发,参数 row, event
|
|
279
281
|
* onScrollEnd: 滚动条滚动至底部时触发,参数 event
|
|
282
|
+
* onFetchError: 后端分页时,查询接口错误时触发,参数 error
|
|
280
283
|
*/
|
|
281
284
|
/**
|
|
282
285
|
* 方法:
|
|
@@ -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;
|
|
@@ -198,6 +198,7 @@ export type IRowHighlight = {
|
|
|
198
198
|
};
|
|
199
199
|
export type ITreeConfig = {
|
|
200
200
|
virtual?: boolean;
|
|
201
|
+
expandIconColumn?: string;
|
|
201
202
|
};
|
|
202
203
|
export type ITreeExpand = {
|
|
203
204
|
rowKey: IRowKey;
|
|
@@ -313,6 +314,7 @@ export type IDerivedRowKey = {
|
|
|
313
314
|
level: number;
|
|
314
315
|
rowKey: IRowKey;
|
|
315
316
|
rowKeyPath: string;
|
|
317
|
+
indexPath: string;
|
|
316
318
|
parentRowKey?: IRowKey;
|
|
317
319
|
children?: IDerivedRowKey[];
|
|
318
320
|
};
|
|
@@ -394,6 +396,7 @@ export type ITableProps = {
|
|
|
394
396
|
onRowContextmenu?: (row: IRecord, column: IColumn, event: React.MouseEvent<HTMLTableCellElement>) => void;
|
|
395
397
|
onRowEnter?: (row: IRecord, event: KeyboardEvent) => void;
|
|
396
398
|
onScrollEnd?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
399
|
+
onFetchError?: (error: any) => void;
|
|
397
400
|
onMergeChange?: (cells: IMergeCell[]) => void;
|
|
398
401
|
};
|
|
399
402
|
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.18",
|
|
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",
|