docs(fullscreen): 修复文档样式冲突
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user