@lemon-fe/components 1.4.22-alpha.0 → 1.4.22-alpha.1
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/es/data-grid/index.js +11 -4
- package/package.json +2 -2
package/es/data-grid/index.js
CHANGED
|
@@ -1485,13 +1485,20 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
var _this$state2 = this.state,
|
|
1487
1487
|
page = _this$state2.page,
|
|
1488
|
-
pageSize = _this$state2.pageSize
|
|
1488
|
+
pageSize = _this$state2.pageSize,
|
|
1489
|
+
pagination = _this$state2.pagination;
|
|
1489
1490
|
var columnState = this.columnApi.getColumnState();
|
|
1490
1491
|
var id = this.requestId;
|
|
1491
1492
|
this.loadingChange(true);
|
|
1492
|
-
|
|
1493
|
+
var pageParams = {
|
|
1493
1494
|
current: page,
|
|
1494
|
-
pageSize: pageSize
|
|
1495
|
+
pageSize: pageSize
|
|
1496
|
+
};
|
|
1497
|
+
if (!pagination) {
|
|
1498
|
+
pageParams.current = 1;
|
|
1499
|
+
pageParams.pageSize = Number.MAX_SAFE_INTEGER;
|
|
1500
|
+
}
|
|
1501
|
+
fetch(_objectSpread(_objectSpread({}, pageParams), {}, {
|
|
1495
1502
|
sort: columnState.filter(function (item) {
|
|
1496
1503
|
return item.sort !== undefined && item.sort !== null;
|
|
1497
1504
|
}).map(function (item) {
|
|
@@ -1500,7 +1507,7 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
|
|
|
1500
1507
|
order: item.sort
|
|
1501
1508
|
};
|
|
1502
1509
|
})
|
|
1503
|
-
}).then(function (res) {
|
|
1510
|
+
})).then(function (res) {
|
|
1504
1511
|
if (id !== _this6.requestId) {
|
|
1505
1512
|
return;
|
|
1506
1513
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "1.4.22-alpha.
|
|
3
|
+
"version": "1.4.22-alpha.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"registry": "https://registry.npmjs.org"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "cd26a96e874a81673af79672cb2d3cc06ae48069"
|
|
62
62
|
}
|