Skip to content

Commit f886f04

Browse files
authored
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.
1 parent 922bcb0 commit f886f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-pagination/Pagination.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ export default {
259259
});
260260
}
261261
// this.$emit('input', page)
262-
this.$emit('change', page, this.statePageSize);
263262
this.$emit('change.current', page, this.statePageSize);
263+
this.$emit('change', page, this.statePageSize);
264264
return page;
265265
}
266266
return this.stateCurrent;

0 commit comments

Comments
 (0)