v2.2.5-beta.1 产出
This commit is contained in:
parent
99dae73e8a
commit
f13af2da22
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue