Comparing version 0.7.3-beta2 to 0.7.3-beta3
@@ -31,2 +31,2 @@ require('./index.css'); | ||
antd.version = '0.7.3-beta2'; | ||
antd.version = '0.7.3-beta3'; |
@@ -64,6 +64,3 @@ 'use strict'; | ||
var noPagination = this.props.pagination === false; | ||
var pagination = (0, _objectAssign2['default'])({ | ||
pageSize: 10, | ||
total: this.props.dataSource.length | ||
}, this.props.pagination); | ||
var pagination = this.initPagination(this.props.pagination); | ||
@@ -86,2 +83,17 @@ return { | ||
}, | ||
componentWillReceiveProps: function componentWillReceiveProps(nextProps) { | ||
if ('pagination' in nextProps) { | ||
var noPagination = nextProps.pagination === false; | ||
this.setState({ | ||
pagination: this.initPagination(nextProps.pagination), | ||
noPagination: noPagination | ||
}); | ||
} | ||
}, | ||
initPagination: function initPagination(pagination) { | ||
return (0, _objectAssign2['default'])({ | ||
pageSize: 10, | ||
total: this.props.dataSource.length | ||
}, pagination); | ||
}, | ||
toggleSortOrder: function toggleSortOrder(order, column) { | ||
@@ -88,0 +100,0 @@ var sortColumn = this.state.sortColumn; |
{ | ||
"name": "antd", | ||
"version": "0.7.3-beta2", | ||
"version": "0.7.3-beta3", | ||
"stableVersion": "0.7.2", | ||
@@ -5,0 +5,0 @@ "title": "Ant Design", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
243373
8915