fix table 导出 null

This commit is contained in:
2023-11-02 14:50:54 +08:00
parent 81bb541a46
commit 171b4ac806
4 changed files with 4 additions and 4 deletions

View File

@@ -1189,7 +1189,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}>${item[name]}</td>`;
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${item[name] || ""}</td>`;
}
}
});