import React, { Component } from 'react'; import './index.less'; import Icon from '../Icon'; import Select from '../Select'; export default class extends Component { onChangePage(page) { const { total, pageSize, onChange } = this.props; const all = Math.ceil(total / pageSize); if (page <= 0 || page > all) return; if (onChange) onChange(page); } render() { const { current, total, pageSize, jump } = this.props; const all = Math.ceil(total / pageSize); return (
this.onChangePage(current - 1)} /> {current}/{all} this.onChangePage(current + 1)} /> {jump && (
跳转至