Commit a81cea32 authored by qingwei.li's avatar qingwei.li

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

parent 49a4097c
......@@ -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);
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment