Comparing version 3.2.0 to 3.3.0
# History | ||
---- | ||
## 3.3.0 / 2015-10-27 | ||
- support react 0.14 | ||
## 3.2.0 / 2015-09-09 | ||
- add expandIconAsCell prop |
@@ -150,2 +150,3 @@ 'use strict'; | ||
var childrenColumn = record[childrenColumnName]; | ||
var isRowExpanded = this.isRowExpanded(record); | ||
var expandedRowContent = undefined; | ||
@@ -165,3 +166,3 @@ if (expandedRowRender) { | ||
expandable: childrenColumn || expandedRowContent, | ||
expanded: this.isRowExpanded(record), | ||
expanded: isRowExpanded, | ||
prefixCls: props.prefixCls + '-row', | ||
@@ -172,5 +173,5 @@ childrenColumnName: childrenColumnName, | ||
var subVisible = visible && this.isRowExpanded(record); | ||
var subVisible = visible && isRowExpanded; | ||
if (expandedRowContent) { | ||
if (expandedRowContent && isRowExpanded) { | ||
rst.push(this.getExpandedRow(key, expandedRowContent, subVisible, expandedRowClassName(record, i))); | ||
@@ -204,2 +205,9 @@ } | ||
isRowExpanded: function isRowExpanded(record) { | ||
var info = this.state.expandedRows.filter(function (i) { | ||
return i.record === record; | ||
}); | ||
return info[0] && info[0].expanded; | ||
}, | ||
render: function render() { | ||
@@ -257,9 +265,2 @@ var props = this.props; | ||
); | ||
}, | ||
isRowExpanded: function isRowExpanded(record) { | ||
var info = this.state.expandedRows.filter(function (i) { | ||
return i.record === record; | ||
}); | ||
return info[0] && info[0].expanded; | ||
} | ||
@@ -266,0 +267,0 @@ }); |
{ | ||
"name": "rc-table", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "table ui component for react", | ||
@@ -48,3 +48,5 @@ "keywords": [ | ||
"rc-tools": "4.x", | ||
"react": "~0.13.0" | ||
"react": "~0.14.0", | ||
"react-addons-test-utils": "^0.14.0", | ||
"react-dom": "^0.14.0" | ||
}, | ||
@@ -51,0 +53,0 @@ "precommit": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17448
307
0
1
10