@kne/table-page 0.1.35 → 0.1.36
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/README.md +24 -6
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1376,7 +1376,9 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
1376
1376
|
const useMobileLoadMore = isMobileRenderActive && pagination.open && !pagination.forcePagination;
|
|
1377
1377
|
// PC 卡片模式默认下拉加载,pagination.forcePagination 为 true 时仍用分页
|
|
1378
1378
|
const useCardLoadMore = isCardModeActive && pagination.open && !pagination.forcePagination;
|
|
1379
|
-
|
|
1379
|
+
// PC Table:默认分页;pagination.forceLoadMore 强制触底下拉(与 forcePagination 互斥时以后者为准)
|
|
1380
|
+
const useTableLoadMore = !isMobileRenderActive && !isCardModeActive && pagination.open && !!pagination.forceLoadMore && !pagination.forcePagination;
|
|
1381
|
+
const useLoadMoreMode = useMobileLoadMore || useCardLoadMore || useTableLoadMore;
|
|
1380
1382
|
const currentPage = get(requestParams, [pagination.paramsType, pagination.currentName], 1);
|
|
1381
1383
|
const currentPageSize = Number(get(requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize || 20;
|
|
1382
1384
|
const loadMoreNoMore = !formatData.total || currentPage * currentPageSize >= formatData.total;
|