mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
Merge branch master into develop-1.0.0
This commit is contained in:
commit
d2ffb0978f
@ -96,9 +96,9 @@ export default class Table extends React.Component {
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (('pagination' in nextProps) && nextProps.pagination !== false) {
|
||||
this.setState({
|
||||
pagination: { ...defaultPagination, ...this.state.pagination, ...nextProps.pagination },
|
||||
});
|
||||
this.setState(previousState => ({
|
||||
pagination: { ...defaultPagination, ...previousState.pagination, ...nextProps.pagination },
|
||||
}));
|
||||
}
|
||||
// dataSource 的变化会清空选中项
|
||||
if ('dataSource' in nextProps &&
|
||||
|
Loading…
Reference in New Issue
Block a user