docs(fullscreen): 修复文档样式冲突

This commit is contained in:
就眠儀式
2022-03-17 14:18:56 +08:00
parent 7b83700967
commit 8d766be166
4 changed files with 20 additions and 27 deletions

View File

@@ -106,19 +106,19 @@ const print = function () {
const exportData = () => {
const wb = XLSX.utils.book_new();
let arr: any[] = [];
props.dataSource.forEach(item => {
let obj = {}
tableColumns.value.forEach(tableColumn => {
// @ts-ignore
Object.keys(item).forEach((name) => {
if(tableColumn.key === name) {
// @ts-ignore
obj[tableColumn.title] = item[name]
}
})
})
props.dataSource.forEach((item) => {
let obj = {};
tableColumns.value.forEach((tableColumn) => {
// @ts-ignore
Object.keys(item).forEach((name) => {
if (tableColumn.key === name) {
// @ts-ignore
obj[tableColumn.title] = item[name];
}
});
});
arr.push(obj);
})
});
const ws = XLSX.utils.json_to_sheet(arr);
XLSX.utils.book_append_sheet(wb, ws, "sheet");
XLSX.writeFile(wb, "export.xls", {