@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -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);