Members
(static, constant) read
文件转换成JSON数据
(static, constant) write
导出文件
(static, constant) writeFromTable
Methods
(static) reader(file, options) → {Promise.<any>}
读取文件
Parameters:
Name | Type | Description |
---|---|---|
file |
Object | 文件框响应的文件对象 |
options |
object | 参数选项,可侦听回调函数,如:onloadstart / onprogress / onerror / onload |
Returns:
- Type
- Promise.<any>
(inner) complexTableExport(docName, rowData, colData)
读取文件
Parameters:
Name | Type | Description |
---|---|---|
docName |
String | 输出文件名称 |
rowData |
Array | 行数据 |
colData |
Array | 表头列数据 {name: '表头名', prop: '字段名', child: []} cloData = [ { name: '姓名', prop: 'name' }, { name: '专业技能', child: [ { name: '前端', child: [ { name: 'JavaScript', prop: 'js' } ] } ] } ] |