mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
Fix pagination in table
This commit is contained in:
parent
c6aaeb9932
commit
13ebd2d76d
@ -77,11 +77,11 @@ let AntTable = React.createClass({
|
||||
// 外界只有 dataSource 的变化会触发新请求
|
||||
if ('dataSource' in nextProps &&
|
||||
nextProps.dataSource !== this.props.dataSource) {
|
||||
newState = {
|
||||
newState = objectAssign(newState, {
|
||||
selectedRowKeys: [],
|
||||
dataSource: nextProps.dataSource,
|
||||
loading: true
|
||||
};
|
||||
});
|
||||
}
|
||||
if (nextProps.columns !== this.props.columns) {
|
||||
newState.filters = {};
|
||||
|
Loading…
Reference in New Issue
Block a user