fix table 导出excel 序号

This commit is contained in:
Theluyuan 2023-10-24 13:34:41 +08:00
parent f62909247c
commit 203b787876
4 changed files with 4 additions and 4 deletions

View File

@ -1193,7 +1193,7 @@ const _sfc_main = defineComponent({
const rowspan = rowColSpan ? rowColSpan[0] : 1;
const colspan = rowColSpan ? rowColSpan[1] : 1;
if (rowspan != 0 && colspan != 0) {
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex}</td>`;
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex + 1}</td>`;
}
}
});

View File

@ -19640,7 +19640,7 @@ const _sfc_main$D = defineComponent({
const rowspan = rowColSpan ? rowColSpan[0] : 1;
const colspan = rowColSpan ? rowColSpan[1] : 1;
if (rowspan != 0 && colspan != 0) {
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex}</td>`;
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex + 1}</td>`;
}
}
});

View File

@ -429,7 +429,7 @@ const exportData = () => {
const rowspan = rowColSpan ? rowColSpan[0] : 1;
const colspan = rowColSpan ? rowColSpan[1] : 1;
if (rowspan != 0 && colspan != 0) {
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex}</td>`;
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex + 1}</td>`;
}
}
});

File diff suppressed because one or more lines are too long