@sunggang/ui-lib 0.2.51 → 0.2.52
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/index.esm2.js +8 -3
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -20572,6 +20572,7 @@ var BasePagination = function(param) {
|
|
|
20572
20572
|
var setPageIndex = table.setPageIndex, getCanPreviousPage = table.getCanPreviousPage, getCanNextPage = table.getCanNextPage, getPageCount = table.getPageCount, previousPage = table.previousPage, nextPage = table.nextPage, getState = table.getState;
|
|
20573
20573
|
console.log("nextPage:", nextPage);
|
|
20574
20574
|
console.log("能否下一頁:", getCanNextPage());
|
|
20575
|
+
getState().pagination.pageIndex === getPageCount() - 1;
|
|
20575
20576
|
return /*#__PURE__*/ jsxs("div", {
|
|
20576
20577
|
className: "flex items-center flex-wrap",
|
|
20577
20578
|
children: [
|
|
@@ -20648,9 +20649,13 @@ var BasePagination = function(param) {
|
|
|
20648
20649
|
type: "button",
|
|
20649
20650
|
disabled: !getCanNextPage(),
|
|
20650
20651
|
onClick: function() {
|
|
20651
|
-
|
|
20652
|
-
|
|
20653
|
-
|
|
20652
|
+
var nextPageIndex = getState().pagination.pageIndex + 1;
|
|
20653
|
+
var lastPageIndex = getPageCount() - 1;
|
|
20654
|
+
if (nextPageIndex === lastPageIndex && handleLastPageClick) {
|
|
20655
|
+
handleLastPageClick();
|
|
20656
|
+
} else {
|
|
20657
|
+
nextPage();
|
|
20658
|
+
}
|
|
20654
20659
|
},
|
|
20655
20660
|
children: ">"
|
|
20656
20661
|
}),
|