Pagination: update pager value when page size changes (#10157)

pull/9721/merge
杨奕 2018-03-14 13:24:28 +08:00 committed by GitHub
parent 8eaf600044
commit 5797325c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -211,6 +211,14 @@ export default {
components: { ElInput }, components: { ElInput },
watch: {
'$parent.internalPageSize'() {
this.$nextTick(() => {
this.$refs.input.$el.querySelector('input').value = this.$parent.internalCurrentPage;
});
}
},
methods: { methods: {
handleFocus(event) { handleFocus(event) {
this.oldValue = event.target.value; this.oldValue = event.target.value;