Comparing version 3.7.1 to 3.8.0
# History | ||
---- | ||
## 3.7.1 / 2015-12-28 | ||
- fix align of indent nested children table | ||
- fix expandRowRender called problems when it is not expanded | ||
## 3.7.0 / 2015-12-28 | ||
- indent nested children table | ||
## 3.6.0 / 2015-11-11 | ||
@@ -14,0 +5,0 @@ |
@@ -35,3 +35,4 @@ 'use strict'; | ||
onExpandedRowsChange: _react2['default'].PropTypes.func, | ||
indentSize: _react2['default'].PropTypes.number | ||
indentSize: _react2['default'].PropTypes.number, | ||
onRowClick: _react2['default'].PropTypes.func | ||
}, | ||
@@ -176,2 +177,3 @@ | ||
}); | ||
var onRowClick = props.onRowClick; | ||
for (var i = 0; i < data.length; i++) { | ||
@@ -203,2 +205,3 @@ var record = data[i]; | ||
columns: columns, | ||
onRowClick: onRowClick, | ||
key: key })); | ||
@@ -205,0 +208,0 @@ |
@@ -39,2 +39,3 @@ 'use strict'; | ||
var needIndentSpaced = props.needIndentSpaced; | ||
var onRowClick = props.onRowClick; | ||
@@ -77,3 +78,3 @@ for (var i = 0; i < columns.length; i++) { | ||
if (!_react2['default'].isValidElement(text) && 'children' in text) { | ||
if (typeof text !== 'string' && !_react2['default'].isValidElement(text) && 'children' in text) { | ||
text = text.children; | ||
@@ -103,3 +104,3 @@ } | ||
'tr', | ||
{ className: prefixCls + ' ' + props.className, style: { display: props.visible ? '' : 'none' } }, | ||
{ onClick: onRowClick ? onRowClick.bind(null, record, index) : null, className: prefixCls + ' ' + props.className, style: { display: props.visible ? '' : 'none' } }, | ||
cells | ||
@@ -106,0 +107,0 @@ ); |
{ | ||
"name": "rc-table", | ||
"version": "3.7.1", | ||
"version": "3.8.0", | ||
"description": "table ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -178,2 +178,8 @@ # rc-table | ||
<tr> | ||
<td>onRowClick</td> | ||
<td>Function(record, index)</td> | ||
<th></th> | ||
<td>handle rowClick action, index means the index of current row among fatherElement[childrenColumnName]</td> | ||
</tr> | ||
<tr> | ||
<td>columns</td> | ||
@@ -180,0 +186,0 @@ <td>Object[]<Object></td> |
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
23265
440
253