@monoui/vuejs 1.1.22 → 1.1.23
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/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Table/Table.vue +6 -0
package/package.json
CHANGED
|
@@ -643,12 +643,18 @@ export default {
|
|
|
643
643
|
|
|
644
644
|
this.settings.currentPage = currentPage;
|
|
645
645
|
this.settings.itemPerPage = itemPerPage;
|
|
646
|
+
if (this.settings.currentPage <= 0) {
|
|
647
|
+
this.settings.currentPage = 1;
|
|
648
|
+
}
|
|
646
649
|
if (
|
|
647
650
|
this.settings.itemPerPage ===
|
|
648
651
|
(resultData.totalItemCount || resultData.TotalItemCount)
|
|
649
652
|
) {
|
|
650
653
|
this.settings.pageCount = 1;
|
|
651
654
|
}
|
|
655
|
+
if (this.settings.pageCount <= 0) {
|
|
656
|
+
this.settings.pageCount = 1;
|
|
657
|
+
}
|
|
652
658
|
if (this.settings.currentPage > this.settings.pageCount) {
|
|
653
659
|
this.settings.currentPage = this.settings.pageCount;
|
|
654
660
|
this.changePage(this.settings.currentPage);
|