fix: add pagnation events ts type #3564
parent
d275d2c6a3
commit
c5b6a7ce2c
|
@ -36,6 +36,10 @@ export const PaginationProps = () => ({
|
||||||
itemRender: PropTypes.func,
|
itemRender: PropTypes.func,
|
||||||
role: PropTypes.string,
|
role: PropTypes.string,
|
||||||
showLessItems: PropTypes.looseBool,
|
showLessItems: PropTypes.looseBool,
|
||||||
|
onChange: PropTypes.func,
|
||||||
|
onShowSizeChange: PropTypes.func,
|
||||||
|
'onUpdate:current': PropTypes.func,
|
||||||
|
'onUpdate:pageSize': PropTypes.func,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const PaginationConfig = () => ({
|
export const PaginationConfig = () => ({
|
||||||
|
@ -49,7 +53,7 @@ export default defineComponent({
|
||||||
props: {
|
props: {
|
||||||
...PaginationProps(),
|
...PaginationProps(),
|
||||||
},
|
},
|
||||||
|
emits: ['change', 'showSizeChange', 'update:current', 'update:pageSize'],
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
configProvider: inject('configProvider', defaultConfigProvider),
|
configProvider: inject('configProvider', defaultConfigProvider),
|
||||||
|
|
Loading…
Reference in New Issue