add page control

This commit is contained in:
Jay 2017-04-26 17:49:14 +08:00
parent feac093bda
commit 5e751abbdc

View File

@ -104,6 +104,13 @@ class WristbandPathInfo extends React.Component{
</Menu.Item> </Menu.Item>
</Menu.Menu> </Menu.Menu>
</Menu> </Menu>
<div style={{textAlign: 'center'}}>
<Button content="上一頁" size="small" labelPosition="left" basic={true} color="black" icon="arrow left" onClick={() => {this.prevPage()}} />
<Label basic={true} color="blue" content={`${this.state.page || 1} / ${this.state.maxPage || 1}`} />
<Button content="下一頁" size="small" labelPosition="right" basic={true} color="black" icon="arrow right" onClick={() => {this.nextPage()}} />
</div>
<Table> <Table>
<Table.Header> <Table.Header>
<Table.Row> <Table.Row>