Easily export your json data to excel or import your excel file to your json data...
In your App.vue or another vue file,
import {VueJsExcel} from 'VueJsExcel'
export default {
...
name: 'App',
mixins: [VueJsExcel],
...
}
Then you can call the VueJsExcel like this wherever you want:
this.VueJsExcelExport(this.data, "File Name", this.columns)
data:
Your data source.
File Name:
Your file name. And all blank / space charachters will be replaced with "_" (underscore). Output will be file_name.csv.
columns:
Your header columns. columns paramater might be an array or null. If it is null, there will be no headers in your excel file.
npm install vue-js-excel
npm install
npm run serve
npm run build
npm run lint