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

rc-table

Package Overview
Dependencies
Maintainers
2
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.2.0 to 3.3.0

4

HISTORY.md
# History
----
## 3.3.0 / 2015-10-27
- support react 0.14
## 3.2.0 / 2015-09-09
- add expandIconAsCell prop

21

lib/Table.js

@@ -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": [

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