@@ -11,6 +11,7 @@ import VcPagination from '../vc-pagination';
1111import enUS from '../vc-pagination/locale/en_US' ;
1212import classNames from '../_util/classNames' ;
1313import useConfigInject from '../_util/hooks/useConfigInject' ;
14+ import useBreakpoint from '../_util/hooks/useBreakpoint' ;
1415
1516export const paginationProps = ( ) => ( {
1617 total : Number ,
@@ -43,6 +44,7 @@ export const paginationProps = () => ({
4344 } ) => any
4445 > ,
4546 role : String ,
47+ responsive : Boolean ,
4648 showLessItems : { type : Boolean , default : undefined } ,
4749 onChange : Function as PropType < ( page : number , pageSize : number ) => void > ,
4850 onShowSizeChange : Function as PropType < ( current : number , size : number ) => void > ,
@@ -82,6 +84,7 @@ export default defineComponent({
8284 const selectPrefixCls = computed ( ( ) =>
8385 configProvider . getPrefixCls ( 'select' , props . selectPrefixCls ) ,
8486 ) ;
87+ const breakpoint = useBreakpoint ( ) ;
8588 const [ locale ] = useLocaleReceiver ( 'Pagination' , enUS , toRef ( props , 'locale' ) ) ;
8689 const getIconsProps = ( pre : string ) => {
8790 const ellipsis = < span class = { `${ pre } -item-ellipsis` } > •••</ span > ;
@@ -132,10 +135,11 @@ export default defineComponent({
132135 itemRender = slots . itemRender ,
133136 buildOptionText = slots . buildOptionText ,
134137 selectComponentClass,
138+ responsive,
135139 ...restProps
136140 } = props ;
137141
138- const isSmall = size === 'small' ;
142+ const isSmall = size === 'small' || ! ! ( breakpoint . value ?. xs && ! size && responsive ) ;
139143 const paginationProps = {
140144 ...restProps ,
141145 ...getIconsProps ( prefixCls . value ) ,
0 commit comments