React Ant design table表单与pagination分页配置
1.table表单配置如下
<Table className="zeus__detail__table" columns={this.state.affiliatedTable} pagination={{ pageSize: 10, total: affiliatedTable.total, onChange: this.affiliatedTableTableChangePage,}} dataSource={affiliatedTable.rows}/>
// 回调
affiliatedTableTableChangePage = (page) => {
let params = {
currentPage: page,
pageSize: 10
}
this.props.getaffiliatedTableTableList(params)
}