0.0.3 • Published 2 years ago

table-trans-csv v0.0.3

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

安装 npm i table-trans-csv -S

使用示例

import TableTransCsv from 'table-trans-csv'

const columns = { dataIndex: "index", key: "index", title: "序号", }, { dataIndex: "name", key: "name", title: "姓名", }, { dataIndex: "age", key: "age", title: "年龄", }

const dataList = { id: '32', index: 1, name: '小明', age: '10' }, { id: '42' index: 2, age: '11', name: '小刚' } ;

TableTransCsv(columns, dataList, '导出表格')

说明: columns 里面key 和 dataIndex 必须有一个