master
pan 5 years ago
parent 9de602ea25
commit 9974cbb7b3
  1. 8
      src/sub/IndexMenu.tsx

@ -107,6 +107,14 @@ export class IndexMenu extends React.Component<any, any>{
return (
<Container className="p-5">
<Pagination className="justify-content-center">
{this.state.page.currentPage===1?<Pagination.First disabled/>:<Pagination.First/>}
{this.state.page.currentPage-1>0?<Pagination.Prev/>:<Pagination.Prev disabled/>}
<Pagination.Item active>{this.state.page.currentPage}</Pagination.Item>
{this.state.page.currentPage+1<this.state.page.totalPage?<Pagination.Next/>:<Pagination.Next disabled/>}
{this.state.page.currentPage===this.state.page.totalPage?<Pagination.Last disabled/>:<Pagination.Last/>}
</Pagination>
<div>
{rowList}
</div>

Loading…
Cancel
Save