提交 d7e4578b 编写于 作者: Y yiminghe

fix pageSize

上级 6d9245eb
......@@ -431,12 +431,13 @@ let AntTable = React.createClass({
'mini': this.props.size === 'middle' || this.props.size === 'small',
});
let total = this.state.pagination.total || this.getLocalData().length;
const pageSize = this.state.pagination.pageSize;
return (total > 0) ?
<Pagination {...this.state.pagination}
className={classString}
onChange={this.handlePageChange}
total={total}
pageSize={10}
pageSize={pageSize}
onShowSizeChange={this.handleShowSizeChange} /> : null;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册