@nokecy/qc-ui 1.0.16 → 1.0.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.
|
@@ -169,7 +169,7 @@ function AgGridPlus(props) {
|
|
|
169
169
|
applyOrder: true
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
}, [gridPlusColumnState, apiRef.current
|
|
172
|
+
}, [gridPlusColumnState, apiRef.current]);
|
|
173
173
|
(0, _react.useEffect)(function () {
|
|
174
174
|
setRowData(dataSource || propRowData || []);
|
|
175
175
|
}, [dataSource, propRowData]);
|
|
@@ -439,7 +439,15 @@ function AgGridPlus(props) {
|
|
|
439
439
|
gridApi: apiRef.current,
|
|
440
440
|
onQuery: function onQuery(formValues) {
|
|
441
441
|
setQueryFilter(_objectSpread({}, formValues));
|
|
442
|
-
|
|
442
|
+
setPagination(function (prev) {
|
|
443
|
+
if (prev.current !== 1) {
|
|
444
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
445
|
+
current: 1
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
onRequest && onRequest(formValues);
|
|
449
|
+
return prev;
|
|
450
|
+
});
|
|
443
451
|
}
|
|
444
452
|
}), /*#__PURE__*/_react.default.createElement(_antd.Card, {
|
|
445
453
|
bordered: false,
|
|
@@ -502,7 +510,8 @@ function AgGridPlus(props) {
|
|
|
502
510
|
var _apiRef$current4;
|
|
503
511
|
var _columnState = (_apiRef$current4 = apiRef.current) === null || _apiRef$current4 === void 0 ? void 0 : _apiRef$current4.getColumnState();
|
|
504
512
|
setColumnState(_columnState);
|
|
505
|
-
|
|
513
|
+
|
|
514
|
+
// onColumnStateChanged && onColumnStateChanged(columnState)
|
|
506
515
|
}
|
|
507
516
|
}
|
|
508
517
|
// onColumnMoved={() => {
|
|
@@ -160,7 +160,7 @@ function AgGridPlus(props) {
|
|
|
160
160
|
applyOrder: true
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
}, [gridPlusColumnState, apiRef.current
|
|
163
|
+
}, [gridPlusColumnState, apiRef.current]);
|
|
164
164
|
useEffect(function () {
|
|
165
165
|
setRowData(dataSource || propRowData || []);
|
|
166
166
|
}, [dataSource, propRowData]);
|
|
@@ -430,7 +430,15 @@ function AgGridPlus(props) {
|
|
|
430
430
|
gridApi: apiRef.current,
|
|
431
431
|
onQuery: function onQuery(formValues) {
|
|
432
432
|
setQueryFilter(_objectSpread({}, formValues));
|
|
433
|
-
|
|
433
|
+
setPagination(function (prev) {
|
|
434
|
+
if (prev.current !== 1) {
|
|
435
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
436
|
+
current: 1
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
onRequest && onRequest(formValues);
|
|
440
|
+
return prev;
|
|
441
|
+
});
|
|
434
442
|
}
|
|
435
443
|
}), /*#__PURE__*/React.createElement(Card, {
|
|
436
444
|
bordered: false,
|
|
@@ -493,7 +501,8 @@ function AgGridPlus(props) {
|
|
|
493
501
|
var _apiRef$current4;
|
|
494
502
|
var _columnState = (_apiRef$current4 = apiRef.current) === null || _apiRef$current4 === void 0 ? void 0 : _apiRef$current4.getColumnState();
|
|
495
503
|
setColumnState(_columnState);
|
|
496
|
-
|
|
504
|
+
|
|
505
|
+
// onColumnStateChanged && onColumnStateChanged(columnState)
|
|
497
506
|
}
|
|
498
507
|
}
|
|
499
508
|
// onColumnMoved={() => {
|