mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix table pagination false bug
This commit is contained in:
parent
411f19d765
commit
01a6c0f1e6
@ -283,8 +283,15 @@ let AntTable = React.createClass({
|
||||
});
|
||||
} else {
|
||||
let data = this.props.dataSource;
|
||||
let pageSize = this.state.pagination.pageSize;
|
||||
let current = this.state.pagination.current;
|
||||
let current, pageSize;
|
||||
// 如果没有分页的话,默认全部展示
|
||||
if (this.state.pagination === false) {
|
||||
pageSize = Number.POSITIVE_INFINITY;
|
||||
current = 1;
|
||||
} else {
|
||||
pageSize = this.state.pagination.pageSize;
|
||||
current = this.state.pagination.current;
|
||||
}
|
||||
// 排序
|
||||
if (this.state.sortOrder && this.state.sorter) {
|
||||
data = data.sort(this.state.sorter);
|
||||
|
Loading…
Reference in New Issue
Block a user