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 },
|
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;
|
||||||
|
|
Loading…
Reference in New Issue