@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.
- package/dist/Table/index.js +4 -1
- package/package.json +1 -1
package/dist/Table/index.js
CHANGED
|
@@ -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) >
|
|
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'
|