vue-table-to-excel
Advanced tools
Comparing version
{ | ||
"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 @@ } |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
1
-50%9698
-0.05%