1.0.1 • Published 5 years ago

export-excel-package v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

JSON TO Excel

install with npm
$ npm install export-excel-package
使用
import ExportExcel from 'export-excel-package'
Vue.use(ExportExcel)

this.$toExcel({ tHeader, filterVal, list, title: 'title', merges })
参数
参数描述类型必须模板
tHeader导出excel表头Arraytrue'标题1', '标题2'
filterVal需要导出数据keyArraytrue'title1', 'title2'
list需要导出数据Arraytrue{title1: '11', title2: '22'}
title表格标题Stringfalse默认:列表
merges单元格合并设置Arrayfalse[0,0,1,2, 2,2,4,3]