眼瞎,把i写成1

This commit is contained in:
huayj 2019-08-27 17:05:02 +08:00
parent 35347335e6
commit 99dae73e8a
1 changed files with 2 additions and 2 deletions

View File

@ -694,7 +694,7 @@ class Table extends Component {
if ( props.showRowNum ){
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': {
@ -702,7 +702,7 @@ class Table extends Component {
break;
}
default: {
data[i][props.showRowNum.key || '_index'] = (props.showRowNum.base || 0) + 1;
data[i][props.showRowNum.key || '_index'] = (props.showRowNum.base || 0) + i;
break;
}
}