Skip to content

Commit 5797325

Browse files
Pagination: update pager value when page size changes (#10157)
1 parent 8eaf600 commit 5797325

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/pagination/src/pagination.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,14 @@ export default {
211211

212212
components: { ElInput },
213213

214+
watch: {
215+
'$parent.internalPageSize'() {
216+
this.$nextTick(() => {
217+
this.$refs.input.$el.querySelector('input').value = this.$parent.internalCurrentPage;
218+
});
219+
}
220+
},
221+
214222
methods: {
215223
handleFocus(event) {
216224
this.oldValue = event.target.value;

0 commit comments

Comments
 (0)