update pagination

This commit is contained in:
Leopoldthecoder
2016-09-09 12:00:57 +08:00
parent 8261e1d124
commit 3b0477b90f
3 changed files with 3 additions and 5 deletions

View File

@@ -116,7 +116,7 @@ export default {
Sizes: {
created() {
if (Array.isArray(this.$parent.pageSizes)) {
this.$parent.internalPageSize = this.$parent.pageSizes[0];
this.$parent.internalPageSize = this.$parent.pageSizes.indexOf(this.$parent.pageSize) > -1 ? this.$parent.pageSize : this.$parent.pageSizes[0];
}
},