@nokecy/qc-ui 1.0.35 → 1.0.36
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.
|
@@ -177,10 +177,12 @@ function AgGridPlus(props) {
|
|
|
177
177
|
(0, _react.useEffect)(function () {
|
|
178
178
|
if (gridPlusColumnState && gridKey && gridPlusColumnState[gridKey] && apiRef.current) {
|
|
179
179
|
setColumnCellClass(handelgridPlusColumnState(gridPlusColumnState[gridKey]));
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
setTimeout(function () {
|
|
181
|
+
apiRef.current.applyColumnState({
|
|
182
|
+
state: gridPlusColumnState[gridKey],
|
|
183
|
+
applyOrder: true
|
|
184
|
+
});
|
|
185
|
+
}, 10);
|
|
184
186
|
}
|
|
185
187
|
}, [gridPlusColumnState, apiRef.current]);
|
|
186
188
|
(0, _react.useEffect)(function () {
|
|
@@ -610,7 +612,7 @@ function AgGridPlus(props) {
|
|
|
610
612
|
showTotal: function showTotal(total, range) {
|
|
611
613
|
return "\u7B2C ".concat(range[0], "-").concat(range[1], " \u6761/\u603B\u5171 ").concat(total, " \u6761");
|
|
612
614
|
},
|
|
613
|
-
pageSizeOptions: props.pageSizeOptions || [10, 100, 200, 500, 1000, 10000],
|
|
615
|
+
pageSizeOptions: props.pageSizeOptions || [10, 20, 50, 100, 200, 500, 1000, 10000],
|
|
614
616
|
hideOnSinglePage: false,
|
|
615
617
|
showQuickJumper: false
|
|
616
618
|
})))));
|
|
@@ -168,10 +168,12 @@ function AgGridPlus(props) {
|
|
|
168
168
|
useEffect(function () {
|
|
169
169
|
if (gridPlusColumnState && gridKey && gridPlusColumnState[gridKey] && apiRef.current) {
|
|
170
170
|
setColumnCellClass(handelgridPlusColumnState(gridPlusColumnState[gridKey]));
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
setTimeout(function () {
|
|
172
|
+
apiRef.current.applyColumnState({
|
|
173
|
+
state: gridPlusColumnState[gridKey],
|
|
174
|
+
applyOrder: true
|
|
175
|
+
});
|
|
176
|
+
}, 10);
|
|
175
177
|
}
|
|
176
178
|
}, [gridPlusColumnState, apiRef.current]);
|
|
177
179
|
useEffect(function () {
|
|
@@ -601,7 +603,7 @@ function AgGridPlus(props) {
|
|
|
601
603
|
showTotal: function showTotal(total, range) {
|
|
602
604
|
return "\u7B2C ".concat(range[0], "-").concat(range[1], " \u6761/\u603B\u5171 ").concat(total, " \u6761");
|
|
603
605
|
},
|
|
604
|
-
pageSizeOptions: props.pageSizeOptions || [10, 100, 200, 500, 1000, 10000],
|
|
606
|
+
pageSizeOptions: props.pageSizeOptions || [10, 20, 50, 100, 200, 500, 1000, 10000],
|
|
605
607
|
hideOnSinglePage: false,
|
|
606
608
|
showQuickJumper: false
|
|
607
609
|
})))));
|