ods-component-lib 1.17.56 → 1.17.58
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/dist/index.js +5 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1198,22 +1198,6 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
function OdsDataGrid(props) {
|
|
1200
1200
|
var dataGridRef = React.useRef(null);
|
|
1201
|
-
React.useEffect(function () {
|
|
1202
|
-
var dataGrid = dataGridRef.current.instance;
|
|
1203
|
-
var fetchData = function fetchData() {
|
|
1204
|
-
try {
|
|
1205
|
-
var totalCount = props.dataSource.length;
|
|
1206
|
-
dataGrid.beginUpdate();
|
|
1207
|
-
dataGrid.totalCount(totalCount);
|
|
1208
|
-
dataGrid.option('dataSource', [].concat(dataGrid.option('dataSource'), props.dataSource));
|
|
1209
|
-
dataGrid.endUpdate();
|
|
1210
|
-
return Promise.resolve();
|
|
1211
|
-
} catch (e) {
|
|
1212
|
-
return Promise.reject(e);
|
|
1213
|
-
}
|
|
1214
|
-
};
|
|
1215
|
-
fetchData();
|
|
1216
|
-
}, []);
|
|
1217
1201
|
return grid(props, dataGridRef);
|
|
1218
1202
|
}
|
|
1219
1203
|
function grid(props, dataGridRef) {
|
|
@@ -1260,9 +1244,11 @@ function grid(props, dataGridRef) {
|
|
|
1260
1244
|
};
|
|
1261
1245
|
var customLoad = function customLoad() {
|
|
1262
1246
|
var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1247
|
+
if (localStorage.getItem(props.exportFileName + "Storage")) {
|
|
1248
|
+
state.selectedRowKeys = [];
|
|
1249
|
+
state.filterValue = [];
|
|
1250
|
+
state.selectionFilter = [];
|
|
1251
|
+
}
|
|
1266
1252
|
return state;
|
|
1267
1253
|
};
|
|
1268
1254
|
var customSave = function customSave(state) {
|