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

30 lines
854 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,
pageSizeOptions: ["10", "20", "50", "100"],
showQuickJumper: true,
pageSize: this.props.pageSize,
onShowSizeChange: (current, pageSize) => {
this.props.onShowSizeChange &&
this.props.onShowSizeChange(current, pageSize);
}
}}
/>
);
}
}