fix tabel excel导出 类型
This commit is contained in:
parent
ffe213314c
commit
61f610ddd9
@ -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}${tableColumn.valueType == "str" ? " x:str" : ""}>${item[name] || ""}</td>`;
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1198,7 +1198,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}${tableColumn.valueType == "str" ? " x:str" : ""}>${rowIndex + 1}</td>`;
|
||||
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex + 1}</td>`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -19636,7 +19636,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}>${item[name] || ""}</td>`;
|
||||
tableStr += `<td colspan=${colspan} rowspan=${rowspan}${tableColumn.valueType == "str" ? " x:str" : ""}>${item[name] || ""}</td>`;
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -19645,7 +19645,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}${tableColumn.valueType == "str" ? " x:str" : ""}>${rowIndex + 1}</td>`;
|
||||
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex + 1}</td>`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -414,7 +414,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}>${item[name] || ''}</td>`;
|
||||
tableStr += `<td colspan=${colspan} rowspan=${rowspan}${tableColumn.valueType == 'str' ? ' x:str' : ''}>${item[name] || ''}</td>`;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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}${tableColumn.valueType == 'str' ? ' x:str' : ''}>${rowIndex + 1}</td>`;
|
||||
tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${rowIndex + 1}</td>`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user