fix(list): pagination's default alignment is at the end (#49925)

This commit is contained in:
ice 2024-07-17 19:01:15 +08:00 committed by GitHub
parent 66c4004155
commit abca9a8baf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 7 deletions

View File

@ -3248,7 +3248,7 @@ exports[`renders components/list/demo/vertical.tsx extend context correctly 1`]
class="ant-list-pagination" class="ant-list-pagination"
> >
<ul <ul
class="ant-pagination" class="ant-pagination ant-pagination-end"
> >
<li <li
aria-disabled="true" aria-disabled="true"

View File

@ -3228,7 +3228,7 @@ exports[`renders components/list/demo/vertical.tsx correctly 1`] = `
class="ant-list-pagination" class="ant-list-pagination"
> >
<ul <ul
class="ant-pagination" class="ant-pagination ant-pagination-end"
> >
<li <li
aria-disabled="true" aria-disabled="true"

View File

@ -2,7 +2,7 @@
exports[`List.pagination pagination button should be displayed normally, when the paginator total is not defined 1`] = ` exports[`List.pagination pagination button should be displayed normally, when the paginator total is not defined 1`] = `
<ul <ul
class="ant-pagination" class="ant-pagination ant-pagination-end"
> >
<li <li
aria-disabled="true" aria-disabled="true"
@ -123,7 +123,7 @@ exports[`List.pagination renders pagination correctly 1`] = `
class="ant-list-pagination" class="ant-list-pagination"
> >
<ul <ul
class="ant-pagination my-page" class="ant-pagination ant-pagination-end my-page"
> >
<li <li
aria-disabled="true" aria-disabled="true"
@ -218,7 +218,7 @@ exports[`List.pagination renders pagination correctly 1`] = `
exports[`List.pagination should change page size work 1`] = ` exports[`List.pagination should change page size work 1`] = `
<ul <ul
class="ant-pagination" class="ant-pagination ant-pagination-end"
> >
<li <li
aria-disabled="true" aria-disabled="true"
@ -363,7 +363,7 @@ exports[`List.pagination should change page size work 1`] = `
exports[`List.pagination should change page size work 2`] = ` exports[`List.pagination should change page size work 2`] = `
<ul <ul
class="ant-pagination" class="ant-pagination ant-pagination-end"
> >
<li <li
aria-disabled="true" aria-disabled="true"
@ -611,7 +611,7 @@ exports[`List.pagination should change page size work 2`] = `
exports[`List.pagination should default work 1`] = ` exports[`List.pagination should default work 1`] = `
<ul <ul
class="ant-pagination" class="ant-pagination ant-pagination-end"
> >
<li <li
aria-disabled="false" aria-disabled="false"

View File

@ -204,6 +204,7 @@ function List<T>({
const paginationContent = pagination && ( const paginationContent = pagination && (
<div className={classNames(`${prefixCls}-pagination`)}> <div className={classNames(`${prefixCls}-pagination`)}>
<Pagination <Pagination
align="end"
{...paginationProps} {...paginationProps}
onChange={onPaginationChange} onChange={onPaginationChange}
onShowSizeChange={onPaginationShowSizeChange} onShowSizeChange={onPaginationShowSizeChange}