@lemon-fe/kits 1.0.0-179 → 1.0.0-180
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.
|
@@ -593,13 +593,16 @@ var DataGrid = /*#__PURE__*/function (_Component) {
|
|
|
593
593
|
});
|
|
594
594
|
|
|
595
595
|
selectedRowKeys.forEach(function (id) {
|
|
596
|
-
newSelected.set(id, _this2.selected.get(id) || null);
|
|
597
|
-
|
|
598
596
|
var node = _this2.api.getRowNode(id);
|
|
599
597
|
|
|
598
|
+
var data;
|
|
599
|
+
|
|
600
600
|
if (node !== undefined) {
|
|
601
601
|
node.setSelected(true, false, true);
|
|
602
|
+
data = node.data;
|
|
602
603
|
}
|
|
604
|
+
|
|
605
|
+
newSelected.set(id, data || _this2.selected.get(id) || null);
|
|
603
606
|
});
|
|
604
607
|
|
|
605
608
|
_this2.selected.clone(newSelected);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColDef, ColGroupDef, EditableCallbackParams, ICellEditorParams, ICellRendererParams, IHeaderParams, AgGridEvent } from '@ag-grid-community/core';
|
|
1
|
+
import type { ColDef, ColGroupDef, EditableCallbackParams, ICellEditorParams, ICellRendererParams, IHeaderParams, AgGridEvent, CheckboxSelectionCallback } from '@ag-grid-community/core';
|
|
2
2
|
import type { AgGridReactProps } from '@ag-grid-community/react';
|
|
3
3
|
import type { RuleItem } from 'async-validator/dist-types/interface';
|
|
4
4
|
import type { ReactElement, ReactNode } from 'react';
|
|
@@ -64,7 +64,7 @@ export declare type RowSelectionType<T = any> = {
|
|
|
64
64
|
preserveSelectedRowKeys?: boolean;
|
|
65
65
|
defaultSelectedRowKeys?: string[];
|
|
66
66
|
fixed?: boolean;
|
|
67
|
-
checkboxSelection?: boolean
|
|
67
|
+
checkboxSelection?: boolean | CheckboxSelectionCallback<T>;
|
|
68
68
|
onChange?: (selectedKeys: string[], selectedRows: T[]) => void;
|
|
69
69
|
};
|
|
70
70
|
export declare type PaginationType = {
|