The front end exports the XLSX method
npm install export-to-xlsx
import ExportToXlsx from 'export-to-xlsx'
...
function exportData (data) {
const fileName = 'output'
const headers = [
{
k: 'key',
v: 'value'
},
...
]
ExportToXlsx(headers, data, fileName)
}
-
blog: osenki
If you have any problem in using it, please feel free to give me feedback. You can communicate with me through the following contact information
ISC
xlsx csv