25 lines
911 B
JavaScript
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);
|
|
}
|
|
}}
|
|
/>
|
|
)
|
|
}
|
|
} |