Pagination: emit 'current-page' when sizes change, closed #729

pull/745/head
qingwei.li 2016-10-31 15:14:30 +08:00
parent 49a4097cf1
commit a81cea32c7
1 changed files with 2 additions and 0 deletions

View File

@ -309,8 +309,10 @@ export default {
/* istanbul ignore if */
if (newVal > 0 && this.internalCurrentPage === 0) {
this.internalCurrentPage = 1;
this.$emit('current-change', 1);
} else if (this.internalCurrentPage > newVal) {
this.internalCurrentPage = newVal;
this.$emit('current-change', newVal);
}
},