@sunggang/ui-lib 0.2.51 → 0.2.53
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 +10 -5
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -20570,8 +20570,6 @@ var DataTable = function(param) {
|
|
|
20570
20570
|
var BasePagination = function(param) {
|
|
20571
20571
|
var table = param.table, total = param.total, handleLastPageClick = param.handleLastPageClick;
|
|
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
|
-
console.log("nextPage:", nextPage);
|
|
20574
|
-
console.log("能否下一頁:", getCanNextPage());
|
|
20575
20573
|
return /*#__PURE__*/ jsxs("div", {
|
|
20576
20574
|
className: "flex items-center flex-wrap",
|
|
20577
20575
|
children: [
|
|
@@ -20648,9 +20646,13 @@ var BasePagination = function(param) {
|
|
|
20648
20646
|
type: "button",
|
|
20649
20647
|
disabled: !getCanNextPage(),
|
|
20650
20648
|
onClick: function() {
|
|
20651
|
-
|
|
20652
|
-
|
|
20653
|
-
|
|
20649
|
+
var nextPageIndex = getState().pagination.pageIndex + 1;
|
|
20650
|
+
var lastPageIndex = getPageCount() - 1;
|
|
20651
|
+
if (nextPageIndex === lastPageIndex && handleLastPageClick) {
|
|
20652
|
+
handleLastPageClick();
|
|
20653
|
+
} else {
|
|
20654
|
+
nextPage();
|
|
20655
|
+
}
|
|
20654
20656
|
},
|
|
20655
20657
|
children: ">"
|
|
20656
20658
|
}),
|
|
@@ -58800,17 +58802,20 @@ var LiffProvider = function(param) {
|
|
|
58800
58802
|
case 2:
|
|
58801
58803
|
_state.sent();
|
|
58802
58804
|
console.log("LIFF init succeeded.");
|
|
58805
|
+
console.log("LIFF OBJ", liff);
|
|
58803
58806
|
setLiffObject(liff);
|
|
58804
58807
|
if (isValid) return [
|
|
58805
58808
|
2
|
|
58806
58809
|
];
|
|
58807
58810
|
lineToken = liff === null || liff === void 0 ? void 0 : liff.getAccessToken();
|
|
58811
|
+
console.log("liff?.getAccessToken()", lineToken);
|
|
58808
58812
|
// 未登入先進行登入
|
|
58809
58813
|
if (!liff.isLoggedIn()) {
|
|
58810
58814
|
redirectUri = customerRedirectUrl || "".concat(window.location.href);
|
|
58811
58815
|
if (loginByUser || ignoreRoute) return [
|
|
58812
58816
|
2
|
|
58813
58817
|
];
|
|
58818
|
+
console.log("liff.isLoggedIn()");
|
|
58814
58819
|
liff.login({
|
|
58815
58820
|
redirectUri: redirectUri
|
|
58816
58821
|
});
|