From 6ac67714095b032e6de1b82d6b046d721821055b Mon Sep 17 00:00:00 2001 From: erguotou Date: Thu, 16 Jul 2020 17:09:17 +0800 Subject: [PATCH] fix: [component:vc-pagination]emit change.current before change It's better to emit 'change.current' before 'change' event, so that onChange handler can use v-model value correctly. --- components/vc-pagination/Pagination.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-pagination/Pagination.jsx b/components/vc-pagination/Pagination.jsx index 14d75f3e98..530bd48116 100644 --- a/components/vc-pagination/Pagination.jsx +++ b/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;