Comparing version 3.4.0 to 3.4.1
@@ -48,3 +48,2 @@ 'use strict'; | ||
var notRender = false; | ||
var align = 'left'; | ||
@@ -76,3 +75,2 @@ if (i === 0 && expandable) { | ||
colSpan = tdProps.colSpan; | ||
align = tdProps.align || 'left'; | ||
} | ||
@@ -86,3 +84,3 @@ | ||
'td', | ||
{ key: col.key, style: { textAlign: align }, colSpan: colSpan, rowSpan: rowSpan, className: '' + colClassName }, | ||
{ key: col.key, colSpan: colSpan, rowSpan: rowSpan, className: '' + colClassName }, | ||
expandIcon, | ||
@@ -89,0 +87,0 @@ text |
{ | ||
"name": "rc-table", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "table ui component for react", | ||
@@ -10,3 +10,4 @@ "keywords": [ | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"assets/*.css" | ||
], | ||
@@ -44,3 +45,3 @@ "main": "./lib/index", | ||
"jquery": "^1.11.2", | ||
"precommit-hook-eslint": "3.x", | ||
"pre-commit": "1.x", | ||
"rc-dropdown": "~1.1.2", | ||
@@ -47,0 +48,0 @@ "rc-menu": "~3.4.0", |
@@ -203,3 +203,3 @@ # rc-table | ||
<th></th> | ||
<td>The render function of cell, has three params: the text of this cell, the record of this row, the index of this row, it's return an object:{children: value, props:{align:'center', colSpan: 1, rowSpan:1}}==>'children' is the text of this cell, props is some setting of this cell, eg: 'align' set text-align, 'colspan' set td colspan, 'rowspan' set td rowspan</td> | ||
<td>The render function of cell, has three params: the text of this cell, the record of this row, the index of this row, it's return an object:{children: value, props:{colSpan: 1, rowSpan:1}}==>'children' is the text of this cell, props is some setting of this cell, eg: 'colspan' set td colspan, 'rowspan' set td rowspan</td> | ||
</tr> | ||
@@ -206,0 +206,0 @@ </tbody> |
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
19818
7
386