Convert array data to excel table
import downloadExcel from 'data-xls';
use it as downloadExcel(data,map,name);
En
this is the list of data you need to export to excel. The format is mainly [{ key:value,key1:value1 },{ key:value,key1:value1 }] object[]
Map is the data dictionary of the data that needs to be used in data. Note that keys that do not exist in the map will not be exported. { key:name } key as name
name is fileName
Zh-CN
data是你需要导出为Excel的数据列表,格式主要为 [{key:value},{key:value}] object[]
map是data中需要使用到的数据的数据字典,> 需要注意的是,map中不存在的key不会进行数据的导出
name就只是文件名,你可以任意发挥