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

View File

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

View File

@ -29,6 +29,7 @@ class Demo0101 extends Component {
<Table <Table
columns={columns} columns={columns}
data={data} 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", "name": "bee-table",
"version": "2.2.4", "version": "2.2.5-beta.1",
"description": "Table ui component for react", "description": "Table ui component for react",
"keywords": [ "keywords": [
"react", "react",