Merge branch master into develop-1.0.0

This commit is contained in:
afc163 2016-04-16 17:10:10 +08:00
commit d2ffb0978f

View File

@ -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 &&