salary-management-front/pc4mobx/hrmSalary/components/customPaginationTable/index.js

25 lines
911 B
JavaScript

import React from 'react'
import { WeaTable } from 'ecCom'
import CustomTable from '../../components/customTable'
export default class CustomPaginationTable extends React.Component {
render() {
return (
<CustomTable
{...this.props}
pagination={{
onChange: (value) => {this.props.onPageChange(value)},
total: this.props.total,
showTotal: (total) => `${total}`,
current: this.props.current,
showSizeChanger: true,
showQuickJumper: true,
pageSize: this.props.pageSize,
onShowSizeChange: (current, pageSize) => {
this.props.onShowSizeChange && this.props.onShowSizeChange(current, pageSize);
}
}}
/>
)
}
}