ods-component-lib 1.17.88 → 1.17.90
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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1247,14 +1247,21 @@ function grid(props, dataGridRef) {
|
|
|
1247
1247
|
var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
|
|
1248
1248
|
if (localStorage.getItem(props.exportFileName + "Storage")) {
|
|
1249
1249
|
state.selectedRowKeys = [];
|
|
1250
|
-
state.filterPanel = {
|
|
1250
|
+
if (props.filterEnabledShow) state.filterPanel = {
|
|
1251
1251
|
filterEnabled: false
|
|
1252
|
+
};else state.filterPanel = {
|
|
1253
|
+
filterEnabled: true
|
|
1252
1254
|
};
|
|
1253
1255
|
}
|
|
1254
1256
|
return state;
|
|
1255
1257
|
};
|
|
1256
1258
|
var customSave = function customSave(state) {
|
|
1257
1259
|
state.selectedRowKeys = [];
|
|
1260
|
+
if (props.filterEnabledShow) state.filterPanel = {
|
|
1261
|
+
filterEnabled: false
|
|
1262
|
+
};else state.filterPanel = {
|
|
1263
|
+
filterEnabled: true
|
|
1264
|
+
};
|
|
1258
1265
|
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1259
1266
|
};
|
|
1260
1267
|
React.useEffect(function () {
|