1- import { provide , inject , defineComponent , App , Plugin } from 'vue' ;
1+ import { provide , inject , defineComponent , App , Plugin , ExtractPropTypes } from 'vue' ;
22import omit from 'omit.js' ;
33import PropTypes , { withUndefined } from '../_util/vue-types' ;
44import classNames from '../_util/classNames' ;
@@ -33,6 +33,8 @@ export const ListGridType = {
3333
3434export const ListSize = tuple ( 'small' , 'default' , 'large' ) ;
3535
36+ const paginationProps = PaginationConfig ( ) ;
37+
3638export const ListProps = ( ) => ( {
3739 bordered : PropTypes . looseBool ,
3840 dataSource : PropTypes . array ,
@@ -42,7 +44,10 @@ export const ListProps = () => ({
4244 loading : withUndefined ( PropTypes . oneOfType ( [ PropTypes . looseBool , PropTypes . object ] ) ) ,
4345 loadMore : PropTypes . any ,
4446 pagination : withUndefined (
45- PropTypes . oneOfType ( [ PropTypes . shape ( PaginationConfig ( ) ) . loose , PropTypes . looseBool ] ) ,
47+ PropTypes . oneOfType ( [
48+ PropTypes . shape < Partial < ExtractPropTypes < typeof paginationProps > > > ( paginationProps ) . loose ,
49+ PropTypes . looseBool ,
50+ ] ) ,
4651 ) ,
4752 prefixCls : PropTypes . string ,
4853 rowKey : PropTypes . any ,
0 commit comments