|
|
@ -304,6 +304,13 @@ let AntTable = React.createClass({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleShowSizeChange(current, pageSize) {
|
|
|
|
|
|
|
|
let pagination = objectAssign(this.state.pagination, {
|
|
|
|
|
|
|
|
pageSize: pageSize
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.fetch({ pagination });
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
renderPagination() {
|
|
|
|
renderPagination() {
|
|
|
|
// 强制不需要分页
|
|
|
|
// 强制不需要分页
|
|
|
|
if (!this.hasPagination()) {
|
|
|
|
if (!this.hasPagination()) {
|
|
|
@ -321,6 +328,7 @@ let AntTable = React.createClass({
|
|
|
|
onChange={this.handlePageChange}
|
|
|
|
onChange={this.handlePageChange}
|
|
|
|
total={total}
|
|
|
|
total={total}
|
|
|
|
pageSize={10}
|
|
|
|
pageSize={10}
|
|
|
|
|
|
|
|
onShowSizeChange={this.handleShowSizeChange}
|
|
|
|
{...this.state.pagination} /> : null;
|
|
|
|
{...this.state.pagination} /> : null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|