Fixed #222 - CurrentPageReport is initially wrong
parent
3d964410df
commit
ea5a27fa13
|
@ -12,22 +12,10 @@
|
||||||
default: '({currentPage} of {totalPages})'
|
default: '({currentPage} of {totalPages})'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
computed: {
|
||||||
return {
|
text() {
|
||||||
text: ''
|
return this.template.replace("{currentPage}", this.page + 1).replace("{totalPages}", this.pageCount);
|
||||||
}
|
}
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
page() {
|
|
||||||
this.text = this.template
|
|
||||||
.replace("{currentPage}", this.page + 1)
|
|
||||||
.replace("{totalPages}", this.pageCount);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.text = this.template
|
|
||||||
.replace("{currentPage}", this.page + 1)
|
|
||||||
.replace("{totalPages}", this.pageCount);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue