1.2.0 • Published 5 years ago

full-export v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

功能

  • 前端导出 Excel

依赖

安装

npm install --save full-export

使用

  • 导出excel

    // 支持中文
    
    import fullExport from 'full-export';
    
    const wb = new fullExport.Excel('excelname');
    
    for (let i = 1; i <= 5; ++i) {
      const ws = wb.addWorkSheet(`w-${i}`);
      ws.addHeader(['姓名', '年龄', 'sex']);
      // addData 一次性添加所有数据
      // pushData 添加一行数据
      ws.addData([['Alex', 18, 0], ['张三', 20, 1]]);
    }
    
    wb.export();

TODO

  • 导出text, JSON

CHANGELOG

  • 1.2.0
    • 2019/08/29
      • 更新依赖版本
1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago