Browse Source

fix: [component:vc-pagination]emit change.current before change (#2567)

It's better to emit 'change.current' before 'change' event, so that onChange handler can use v-model value correctly.
pull/2584/head
erguotou 4 years ago committed by GitHub
parent
commit
f886f04634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/vc-pagination/Pagination.jsx

2
components/vc-pagination/Pagination.jsx

@ -259,8 +259,8 @@ export default {
});
}
// this.$emit('input', page)
this.$emit('change', page, this.statePageSize);
this.$emit('change.current', page, this.statePageSize);
this.$emit('change', page, this.statePageSize);
return page;
}
return this.stateCurrent;

Loading…
Cancel
Save