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