mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
parent
0bea0f6482
commit
baa8e23280
@ -781,7 +781,7 @@ export default class Table<T> extends React.Component<TableProps<T>, any> {
|
||||
<Pagination
|
||||
key="pagination"
|
||||
{...pagination}
|
||||
className={`${this.props.prefixCls}-pagination`}
|
||||
className={classNames(pagination.className, `${this.props.prefixCls}-pagination`)}
|
||||
onChange={this.handlePageChange}
|
||||
total={total}
|
||||
size={size}
|
||||
|
@ -15,7 +15,7 @@ describe('Table.pagination', () => {
|
||||
{ key: 3, name: 'Jerry' },
|
||||
];
|
||||
|
||||
const pagination = { pageSize: 2 };
|
||||
const pagination = { className: 'my-page', pageSize: 2 };
|
||||
|
||||
function createTable(props) {
|
||||
return (
|
||||
@ -66,6 +66,7 @@ describe('Table.pagination', () => {
|
||||
|
||||
expect(handleChange).toBeCalledWith(
|
||||
{
|
||||
className: 'my-page',
|
||||
current: 2,
|
||||
pageSize: 2,
|
||||
},
|
||||
|
@ -73,7 +73,7 @@ exports[`Table.pagination renders pagination correctly 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
<ul
|
||||
class="ant-pagination ant-table-pagination"
|
||||
class="ant-pagination my-page ant-table-pagination"
|
||||
unselectable="unselectable"
|
||||
>
|
||||
<li
|
||||
|
Loading…
Reference in New Issue
Block a user