Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-table

Package Overview
Dependencies
Maintainers
4
Versions
440
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-table - npm Package Compare versions

Comparing version 3.7.1 to 3.8.0

9

HISTORY.md
# 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 @@

5

lib/Table.js

@@ -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 @@ );

2

package.json
{
"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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc