Commit 5a02fdd5 authored by SkyAo's avatar SkyAo Committed by GitHub

Merge pull request #745 from QingWei-Li/feat/pagination

Pagination: emit 'current-page' when sizes change, closed #729
parents b27cec9b a81cea32
...@@ -309,8 +309,10 @@ export default { ...@@ -309,8 +309,10 @@ export default {
/* istanbul ignore if */ /* istanbul ignore if */
if (newVal > 0 && this.internalCurrentPage === 0) { if (newVal > 0 && this.internalCurrentPage === 0) {
this.internalCurrentPage = 1; this.internalCurrentPage = 1;
this.$emit('current-change', 1);
} else if (this.internalCurrentPage > newVal) { } else if (this.internalCurrentPage > newVal) {
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