眼瞎,把i写成1
This commit is contained in:
parent
35347335e6
commit
99dae73e8a
|
@ -694,7 +694,7 @@ class Table extends Component {
|
||||||
if ( props.showRowNum ){
|
if ( props.showRowNum ){
|
||||||
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': {
|
||||||
|
@ -702,7 +702,7 @@ class Table extends Component {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue