@dev-tcloud/tcloud-ui 6.19.1 → 6.19.2
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.
|
@@ -7556,7 +7556,7 @@ class TCloudUiPaginationPipe {
|
|
|
7556
7556
|
this._tcloudUiPaginationService.notifyCollectionChange(args.id);
|
|
7557
7557
|
}
|
|
7558
7558
|
this._previousLengths.set(args.id, currentLength);
|
|
7559
|
-
const total = Math.ceil((collection?.length || 0) / args.itemsPerPage);
|
|
7559
|
+
const total = args?.totalPages || Math.ceil((collection?.length || 0) / args.itemsPerPage);
|
|
7560
7560
|
this._tcloudUiPaginationService.set_total(args, total);
|
|
7561
7561
|
if (!Array.isArray(collection) ||
|
|
7562
7562
|
isNaN(args.currentPage) ||
|