@deepinnet-components/pc 0.0.3 → 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.
@@ -235,19 +235,19 @@ var AddressSelect = function AddressSelect(props) {
235
235
  useEffect(function () {
236
236
  if (onSelectedOptionsChange) {
237
237
  if ((value === null || value === void 0 ? void 0 : value.length) === 3) {
238
- var _item1$children, _item2$children;
238
+ var _item1$children, _item1$children2, _item2$children, _item2$children2;
239
239
  var v1 = value[0];
240
240
  var v2 = value[1];
241
241
  var v3 = value[2];
242
- var item1 = addressList.find(function (item) {
242
+ var item1 = addressList === null || addressList === void 0 ? void 0 : addressList.find(function (item) {
243
243
  return item.value === v1;
244
244
  });
245
245
  if (!item1 || !((_item1$children = item1.children) !== null && _item1$children !== void 0 && _item1$children.length)) return undefined;
246
- var item2 = item1.children.find(function (item) {
246
+ var item2 = (_item1$children2 = item1.children) === null || _item1$children2 === void 0 ? void 0 : _item1$children2.find(function (item) {
247
247
  return item.value === v2;
248
248
  });
249
249
  if (!item2 || !((_item2$children = item2.children) !== null && _item2$children !== void 0 && _item2$children.length)) return undefined;
250
- var item3 = item2.children.find(function (item) {
250
+ var item3 = (_item2$children2 = item2.children) === null || _item2$children2 === void 0 ? void 0 : _item2$children2.find(function (item) {
251
251
  return item.value === v3;
252
252
  });
253
253
  if (!item3) return undefined;
@@ -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.3",
3
+ "version": "0.0.5",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",