@@ -87,7 +87,6 @@ export function DPagination(props: DPaginationProps): JSX.Element | null {
87
87
88
88
const [ jumpValue , setJumpValue ] = useState ( '' ) ;
89
89
const lastPage = Math . max ( Math . ceil ( dTotal / pageSize ) , 1 ) ;
90
- const paginationSpace = dMini ? 8 : 16 ;
91
90
92
91
return (
93
92
< nav
@@ -100,7 +99,7 @@ export function DPagination(props: DPaginationProps): JSX.Element | null {
100
99
role = "navigation"
101
100
aria-label = { restProps [ 'aria-label' ] ?? 'Pagination Navigation' }
102
101
>
103
- { dCompose . map ( ( item , index ) => {
102
+ { dCompose . map ( ( item ) => {
104
103
if ( item === 'total' ) {
105
104
const totalNode = ( ( ) => {
106
105
const range : [ number , number ] = [ Math . min ( ( active - 1 ) * pageSize + 1 , dTotal ) , Math . min ( active * pageSize , dTotal ) ] ;
@@ -116,7 +115,7 @@ export function DPagination(props: DPaginationProps): JSX.Element | null {
116
115
} ) ( ) ;
117
116
118
117
return (
119
- < div key = "total" className = { `${ dPrefix } pagination__total` } style = { { marginLeft : index === 0 ? undefined : paginationSpace } } >
118
+ < div key = "total" className = { `${ dPrefix } pagination__total` } >
120
119
{ totalNode }
121
120
</ div >
122
121
) ;
@@ -132,7 +131,6 @@ export function DPagination(props: DPaginationProps): JSX.Element | null {
132
131
'is-disabled' : active === 1 ,
133
132
[ `${ dPrefix } pagination__button--border` ] : ! ( dCustomRender && dCustomRender . prev ) ,
134
133
} ) }
135
- style = { { marginLeft : index === 0 ? undefined : paginationSpace } }
136
134
title = { t ( 'Pagination' , 'Previous page' ) }
137
135
>
138
136
{ dCustomRender && dCustomRender . prev ? dCustomRender . prev : < LeftOutlined /> }
@@ -291,7 +289,6 @@ export function DPagination(props: DPaginationProps): JSX.Element | null {
291
289
< DSelect
292
290
key = "page-size"
293
291
className = { `${ dPrefix } pagination__page-size` }
294
- style = { { marginLeft : index === 0 ? undefined : paginationSpace } }
295
292
dList = { list }
296
293
dModel = { pageSize }
297
294
dCustomItem = { ( item ) => ( dCustomRender && dCustomRender . pageSize ? dCustomRender . pageSize ( item . value ) : item . label ) }
@@ -350,8 +347,10 @@ export function DPagination(props: DPaginationProps): JSX.Element | null {
350
347
} ) ( ) ;
351
348
352
349
return (
353
- < div key = "jump" className = { `${ dPrefix } pagination__jump` } style = { { marginLeft : index === 0 ? undefined : paginationSpace } } >
354
- { jumpNode }
350
+ < div key = "jump" >
351
+ < div key = "jump" className = { `${ dPrefix } pagination__jump` } >
352
+ { jumpNode }
353
+ </ div >
355
354
</ div >
356
355
) ;
357
356
}
0 commit comments