Fix subtotal not updating (#625)

This commit is contained in:
d3radicated 2017-05-08 06:49:43 +08:00 committed by Marcos Moura
parent f8868e6492
commit e084bdc9ee

View file

@ -54,6 +54,9 @@
},
watch: {
mdTotal(val) {
const sub = this.currentPage * this.currentSize;
this.subTotal = sub > val ? val : sub;
this.totalItems = isNaN(val) ? Number.MAX_SAFE_INTEGER : parseInt(val, 10);
},
mdSize(val) {