🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

vue-table-to-excel

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-table-to-excel - npm Package Compare versions

Comparing version

to
1.0.4

4

package.json
{
"name": "vue-table-to-excel",
"version": "1.0.3",
"version": "1.0.4",
"description": "Export the json data as an excel spreadsheet",

@@ -8,3 +8,3 @@ "main": "dist/umd/index.umd.js",

"build": "rollup -c",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},

@@ -11,0 +11,0 @@ "keywords": [

@@ -25,21 +25,21 @@ # vue-table-to-excel

<script>
import {jsontoexcel} from 'jsontoexcel'
import { jsontoexcel } from "jsontoexcel";
export default {
data() {
return {
json:{
data:[
{name: 'Tom',phone: '+86 01012',email: '000@gmail.com'},
{name: 'Jack',phone: '+86 01012',email: '000@gmail.com'},
{name: 'Alice',phone: '+86 01012',email: '000@gmail.com'}
],
head:['name','phone','email'],
fileName:'download.xlsx'
data() {
return {
json: {
data: [
{ name: "Tom", phone: "+86 01012", email: "000@gmail.com" },
{ name: "Jack", phone: "+86 01012", email: "000@gmail.com" },
{ name: "Alice", phone: "+86 01012", email: "000@gmail.com" }
],
head: ["name", "phone", "email"],
fileName: "download.xlsx"
}
};
},
methods:{
download(){
const {data,head,fileName} = this.json
jsontoexcel.getXlsx(data,head,fileName)
methods: {
download() {
const { data, head, fileName } = this.json;
jsontoexcel.getXlsx(data, head, fileName);
}

@@ -46,0 +46,0 @@ }