indicator-ui 0.0.161 → 0.0.162

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/index.js CHANGED
@@ -11391,6 +11391,8 @@ __webpack_require__.r(__webpack_exports__);
11391
11391
 
11392
11392
  function PageSwitcher({ curPage = 1, numPage, next, prev, onChange, smallVersion = false, }) {
11393
11393
  const getNumberList = () => {
11394
+ if (numPage === 0)
11395
+ return undefined;
11394
11396
  if (numPage <= 7) {
11395
11397
  return Array.from({ length: numPage }, (_, i) => i + 1);
11396
11398
  }
@@ -11406,6 +11408,8 @@ function PageSwitcher({ curPage = 1, numPage, next, prev, onChange, smallVersion
11406
11408
  return [1, '...', curPage - 1, curPage, curPage + 1, '...', numPage];
11407
11409
  };
11408
11410
  const getNumberListSmall = () => {
11411
+ if (numPage === 0)
11412
+ return undefined;
11409
11413
  if (numPage <= 5) {
11410
11414
  return Array.from({ length: numPage }, (_, i) => i + 1);
11411
11415
  }