diff --git a/src/components/inputswitch/InputSwitch.vue b/src/components/inputswitch/InputSwitch.vue
index 2f0e1bfee..2eabc20ae 100755
--- a/src/components/inputswitch/InputSwitch.vue
+++ b/src/components/inputswitch/InputSwitch.vue
@@ -1,8 +1,8 @@
@@ -14,7 +14,10 @@ export default {
inheritAttrs: false,
emits: ['click', 'update:modelValue', 'change', 'input'],
props: {
- modelValue: Boolean,
+ modelValue: {
+ type: null,
+ default: false
+ },
class: null,
style: null,
trueValue: {
diff --git a/src/components/paginator/CurrentPageReport.vue b/src/components/paginator/CurrentPageReport.vue
index 4156a68ac..9b5177029 100755
--- a/src/components/paginator/CurrentPageReport.vue
+++ b/src/components/paginator/CurrentPageReport.vue
@@ -10,6 +10,10 @@
type: Number,
default: 0
},
+ currentPage: {
+ type: Number,
+ default: 0
+ },
page: {
type: Number,
default: 0
@@ -34,7 +38,7 @@
computed: {
text() {
let text = this.template
- .replace("{currentPage}", this.pageCount > 0 ? this.page + 1 : 0)
+ .replace("{currentPage}", this.currentPage)
.replace("{totalPages}", this.pageCount)
.replace("{first}", this.pageCount > 0 ? this.first + 1 : 0)
.replace("{last}", Math.min(this.first + this.rows, this.totalRecords))
diff --git a/src/components/paginator/JumpToPageInput.vue b/src/components/paginator/JumpToPageInput.vue
index efc4e9e3b..579708bf8 100644
--- a/src/components/paginator/JumpToPageInput.vue
+++ b/src/components/paginator/JumpToPageInput.vue
@@ -16,7 +16,7 @@ export default {
},
methods: {
onChange(value) {
- this.$emit('page-change', value);
+ this.$emit('page-change', value - 1);
}
},
components: {
diff --git a/src/components/paginator/Paginator.vue b/src/components/paginator/Paginator.vue
index ee78e8b94..48885bc46 100755
--- a/src/components/paginator/Paginator.vue
+++ b/src/components/paginator/Paginator.vue
@@ -9,13 +9,13 @@
-
-
-
+
@@ -194,6 +194,9 @@ export default {
},
empty() {
return this.pageCount === 0;
+ },
+ currentPage() {
+ return this.pageCount > 0 ? this.page + 1 : 0;
}
},
components: {