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)
}

 

posted @ 2019-03-09 17:50  _心之所向便是光  阅读(14503)  评论(0编辑  收藏  举报