@deepinnet-components/pc 0.0.4 → 0.0.5

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.
@@ -336,6 +336,9 @@ var ShenduTable = function ShenduTable(props) {
336
336
  };
337
337
  }();
338
338
  var handlePaginationChange = function handlePaginationChange(page, pageSize) {
339
+ if (pageSize !== pagination.pageSize) {
340
+ page = 1;
341
+ }
339
342
  setPagination(_objectSpread(_objectSpread({}, pagination), {}, {
340
343
  current: page,
341
344
  pageSize: pageSize
@@ -408,7 +411,7 @@ var ShenduTable = function ShenduTable(props) {
408
411
  loading: loading
409
412
  }, extra, {
410
413
  pagination: false
411
- })), props.pagination !== false && Number(pagination.total) > 10 ? /*#__PURE__*/React.createElement(Pagination, _extends({
414
+ })), props.pagination !== false && Number(pagination.total) > 0 ? /*#__PURE__*/React.createElement(Pagination, _extends({
412
415
  style: {
413
416
  textAlign: 'right',
414
417
  padding: '10px 0'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepinnet-components/pc",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",