diff --git a/src/components/mdTable/mdTablePagination.vue b/src/components/mdTable/mdTablePagination.vue index 6fcd7a8..6c7792b 100644 --- a/src/components/mdTable/mdTablePagination.vue +++ b/src/components/mdTable/mdTablePagination.vue @@ -49,7 +49,7 @@ subTotal: 0, totalItems: 0, currentPage: 1, - currentSize: 0 + currentSize: parseInt(this.mdSize, 10) }; }, watch: { @@ -108,7 +108,7 @@ this.$nextTick(() => { this.subTotal = this.currentPage * this.currentSize; this.mdPageOptions = this.mdPageOptions || [10, 25, 50, 100]; - this.currentSize = this.mdPageOptions[0]; + this.currentSize = this.mdPageOptions.includes(this.currentSize) ? this.currentSize : this.mdPageOptions[0]; this.canFireEvents = true; }); }