feat: usage

This commit is contained in:
jialin
2026-04-22 13:16:48 +08:00
committed by jialin
parent b057d52499
commit 7d75714662
37 changed files with 2199 additions and 288 deletions
+10 -5
View File
@@ -15,11 +15,16 @@ const useExportData = (params: { columns: any[] }) => {
const exportData = (dataList: any[]) => {
const fileName = `benchmark.xlsx`;
exportJsonToExcel({
jsonData: dataList || [],
fileName: fileName,
fields: Object.keys(colIndexMap),
fieldLabels: colIndexMap,
formatMap: {}
fileName,
sheets: [
{
jsonData: dataList || [],
sheetName: 'benchmark_data',
fields: Object.keys(colIndexMap),
fieldLabels: colIndexMap,
formatMap: {}
}
]
});
};
return { exportData };