@nokecy/qc-ui 1.1.29 → 1.1.30
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.
|
@@ -748,10 +748,9 @@ function AgGridPlus(props) {
|
|
|
748
748
|
var rowData = response.data;
|
|
749
749
|
var rowCount = response.total;
|
|
750
750
|
setRowData(rowData);
|
|
751
|
-
//
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
});
|
|
751
|
+
// 【修复】强制重绘所有行,确保 React cellRenderer 重新渲染
|
|
752
|
+
// refreshCells 对 React 渲染的 cellRenderer 无效,需要使用 redrawRows
|
|
753
|
+
(_apiRef$current2 = apiRef.current) === null || _apiRef$current2 === void 0 || _apiRef$current2.redrawRows();
|
|
755
754
|
setPagination(function (prev) {
|
|
756
755
|
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
757
756
|
total: rowCount
|
|
@@ -740,10 +740,9 @@ function AgGridPlus(props) {
|
|
|
740
740
|
var rowData = response.data;
|
|
741
741
|
var rowCount = response.total;
|
|
742
742
|
setRowData(rowData);
|
|
743
|
-
//
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
});
|
|
743
|
+
// 【修复】强制重绘所有行,确保 React cellRenderer 重新渲染
|
|
744
|
+
// refreshCells 对 React 渲染的 cellRenderer 无效,需要使用 redrawRows
|
|
745
|
+
(_apiRef$current2 = apiRef.current) === null || _apiRef$current2 === void 0 || _apiRef$current2.redrawRows();
|
|
747
746
|
setPagination(function (prev) {
|
|
748
747
|
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
749
748
|
total: rowCount
|