@lemon-fe/kits 1.0.0-180 → 1.0.0-181

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.
@@ -625,14 +625,14 @@ var DataGrid = /*#__PURE__*/function (_Component) {
625
625
  var _this$state = this.state,
626
626
  page = _this$state.page,
627
627
  pageSize = _this$state.pageSize;
628
- var totalPages = Math.ceil(dataSource.length / pageSize);
628
+ var totalPages = Math.ceil(dataSource.length / pageSize) || 1;
629
629
  var newPage = page > totalPages ? totalPages : page;
630
630
  this.setState({
631
631
  total: dataSource.length,
632
632
  page: newPage
633
633
  }, function () {
634
634
  if (newPage !== page && _this3.isClientMode()) {
635
- _this3.api.paginationGoToPage(newPage - 1 || 0);
635
+ _this3.api.paginationGoToPage(newPage - 1);
636
636
  }
637
637
  });
638
638
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.0.0-180",
3
+ "version": "1.0.0-181",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",