好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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

 

查看更多关于React Ant design table表单与pagination分页配置的详细内容...

  阅读:59次