fix: add pagnation events ts type #3564

pull/3598/head
tangjinzhou 2021-01-23 17:09:13 +08:00
parent d275d2c6a3
commit c5b6a7ce2c
1 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,10 @@ export const PaginationProps = () => ({
itemRender: PropTypes.func,
role: PropTypes.string,
showLessItems: PropTypes.looseBool,
onChange: PropTypes.func,
onShowSizeChange: PropTypes.func,
'onUpdate:current': PropTypes.func,
'onUpdate:pageSize': PropTypes.func,
});
export const PaginationConfig = () => ({
@ -49,7 +53,7 @@ export default defineComponent({
props: {
...PaginationProps(),
},
emits: ['change', 'showSizeChange', 'update:current', 'update:pageSize'],
setup() {
return {
configProvider: inject('configProvider', defaultConfigProvider),