zydx-plus 1.1.16 → 1.1.17

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": "zydx-plus",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -87,9 +87,9 @@ export default defineComponent({
87
87
  handler: function (v) {
88
88
  if (v >= this.pages) {
89
89
  this.page = this.pages
90
- } else {
91
-
92
- this.page = v
90
+ }
91
+ if (v <= 1) {
92
+ this.page = 1
93
93
  }
94
94
  },
95
95
  immediate: true
@@ -64,6 +64,9 @@ export default defineComponent({
64
64
  currentPage: {
65
65
  handler: debounce(function (v) {
66
66
  this.$emit('page:change', v)
67
+ if (v < 1) {
68
+ this.currentPage = 1
69
+ }
67
70
  }),
68
71
  immediate: true
69
72
  }
package/src/index.js CHANGED
@@ -23,7 +23,7 @@ function install(app) {
23
23
  }
24
24
 
25
25
  export default {
26
- version: '1.1.16',
26
+ version: '1.1.17',
27
27
  install,
28
28
  Calendar,
29
29
  Message,