|
@@ -43,6 +43,9 @@ function convertType(value: any, type: any) {
|
|
|
}
|
|
|
}
|
|
|
const ExcelWriter = {
|
|
|
+ async getColumnNames() {
|
|
|
+ return columnNames;
|
|
|
+ },
|
|
|
async outputExcel(headerConfig: Array<any>, data: Array<any>, options: Options) {
|
|
|
let excelData: Array<any> = [];
|
|
|
|
|
@@ -122,6 +125,7 @@ const ExcelWriter = {
|
|
|
};
|
|
|
await writeXlsxFile(data, optionsOutput);
|
|
|
},
|
|
|
+
|
|
|
/**
|
|
|
* 导出示例
|
|
|
*/
|