Skip to content

zhuqingsong59/webData2Excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webData2Excel

export data to excel in browser

Installation

 npm i webData2Excel

Usage

 import webData2Excel form 'webData2Excel'

   ...

 webData2Excel(headList, dataList, fileName)

Parameters format

headList

object array, object has two props, label and key

for example:

[
 {label: '表头名称1', key: 'prop1'},
 {label: '表头名称2', key: 'prop2'}
 ...
]

dataList

object array with data

for example:

[
 {prop1: '数据1-1', prop2: '数据1-2', ...},
 {prop1: '数据2-1', prop2: '数据2-2', ...}
 ...
]

fileName

string

for example:

'文件名称'

About

export web data to excel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published