vue-json-excel is a Vue.js component library that provides functionality for exporting JSON data as an Excel file. It allows you to generate Excel files from JSON data and customize various aspects of the exported file, such as the sheet name, column headers, cell formatting, and more.
Get the package:
npm install vue-json-excel
Register JsonExcel in your vue app entry point:
import Vue from "vue";
import JsonExcel from "vue-json-excel";
Vue.component("downloadExcel", JsonExcel);
In your template :
<download-excel :data="json_data">
Download Data
<img src="download_icon.png" />
</download-excel>
For more example & config please visit : https://www.npmjs.com/package/vue-json-excel