v2.2.5-beta.1 产出

This commit is contained in:
huayj 2019-08-27 17:12:43 +08:00
parent 99dae73e8a
commit f13af2da22
12 changed files with 10062 additions and 9205 deletions

View File

@ -852,7 +852,7 @@ var Table = function (_Component) {
switch (props.showRowNum.type) {
case 'number':
{
data[i][props.showRowNum.key || '_index'] = (props.showRowNum.base || 0) + 1;
data[i][props.showRowNum.key || '_index'] = (props.showRowNum.base || 0) + i;
break;
}
case 'ascii':
@ -862,7 +862,7 @@ var Table = function (_Component) {
}
default:
{
data[i][props.showRowNum.key || '_index'] = (props.showRowNum.base || 0) + 1;
data[i][props.showRowNum.key || '_index'] = (props.showRowNum.base || 0) + i;
break;
}
}

View File

@ -631,7 +631,7 @@ var TableRow = function (_Component) {
if (!visible) {
style.display = 'none';
}
if (record._checked) {
if (record && record._checked) {
className += ' selected';
}
return _react2["default"].createElement(

View File

@ -29,6 +29,7 @@ class Demo0101 extends Component {
<Table
columns={columns}
data={data}
showRowNum={true}
/>
);
}

File diff suppressed because one or more lines are too long

2
dist/demo.css.map vendored

File diff suppressed because one or more lines are too long

16898
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "2.2.4",
"version": "2.2.5-beta.1",
"description": "Table ui component for react",
"keywords": [
"react",