mirror of https://github.com/ElemeFE/element
Pagination: update pager value when page size changes (#10157)
parent
8eaf600044
commit
5797325c73
|
@ -211,6 +211,14 @@ export default {
|
|||
|
||||
components: { ElInput },
|
||||
|
||||
watch: {
|
||||
'$parent.internalPageSize'() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.input.$el.querySelector('input').value = this.$parent.internalCurrentPage;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleFocus(event) {
|
||||
this.oldValue = event.target.value;
|
||||
|
|
Loading…
Reference in New Issue