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 922bcb05e7
commit f886f04634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save