mirror of https://github.com/ElemeFE/element
Pagination: emit 'current-page' when sizes change, closed #729
parent
49a4097cf1
commit
a81cea32c7
|
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue