眼瞎,把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 ){ 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;
} }
} }