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 2020-07-21 11:29:59 +08:00 committed by GitHub
parent 922bcb05e7
commit f886f04634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;