Skip to content

Commit c5b6a7c

Browse files
committed
fix: add pagnation events ts type #3564
1 parent d275d2c commit c5b6a7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/pagination/Pagination.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export const PaginationProps = () => ({
3636
itemRender: PropTypes.func,
3737
role: PropTypes.string,
3838
showLessItems: PropTypes.looseBool,
39+
onChange: PropTypes.func,
40+
onShowSizeChange: PropTypes.func,
41+
'onUpdate:current': PropTypes.func,
42+
'onUpdate:pageSize': PropTypes.func,
3943
});
4044

4145
export const PaginationConfig = () => ({
@@ -49,7 +53,7 @@ export default defineComponent({
4953
props: {
5054
...PaginationProps(),
5155
},
52-
56+
emits: ['change', 'showSizeChange', 'update:current', 'update:pageSize'],
5357
setup() {
5458
return {
5559
configProvider: inject('configProvider', defaultConfigProvider),

0 commit comments

Comments
 (0)