mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix(list): pagination's default alignment is at the end (#49925)
This commit is contained in:
parent
66c4004155
commit
abca9a8baf
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user