# export-excel-eug

> This is about exporting excel component

Latest version **1.0.14** (published 2019-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install export-excel-eug
pnpm add export-excel-eug
yarn add export-excel-eug
bun add export-excel-eug
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.14 |
| Published | 2019-06-25 |
| First published | 2019-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.8 MB |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| Author | sumarry |
| Maintainers | eugenehuang9638 |

## Links

- npm: https://www.npmjs.com/package/export-excel-eug
- npm.io page: https://npm.io/package/export-excel-eug

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.5.11
- [xlsx](https://npm.io/package/xlsx.md) ^0.14.0
- [file-saver](https://npm.io/package/file-saver.md) ^2.0.0

## Recent versions

- 1.0.14 (latest) — 2019-06-25
- 1.0.13 — 2019-06-25
- 1.0.12 — 2019-06-25
- 1.0.11 — 2019-06-25
- 1.0.10 — 2019-06-25
- 1.0.9 — 2019-06-25
- 1.0.8 — 2019-06-25
- 1.0.7 — 2019-06-25
- 1.0.6 — 2019-06-25
- 1.0.5 — 2019-06-25
- 1.0.4 — 2019-06-25
- 1.0.3 — 2019-06-25
- 1.0.1 — 2019-06-25
- 1.0.0 — 2019-06-25

## README

#背景
本组件是基于vue.js编写, 只兼容于vue脚手架搭建的项目, 由于本插件依赖于
```js
"file-saver": "^2.0.0",
"xlsx": "^0.14.0"
```
两个类库, 若项目中有其他版本依赖, 请确认是否会冲突

#### 使用方式
1. 执行命令添加依赖
npm install --save export-excel-eug

2. 在vue入口文件处全局使用该插件
```js
import ExportExcelEug from 'export-excel-eug'
exportExcelEug.forEach(key => {
  Vue.use(key)
})
```

#### API
* props: [
    'originData', // 需要export成excel的源数据
    'fileName' // export的文件名
  ]

* startExport  // 组件内部导出excel方法
* @buildDataSuccess // 导出数据就绪通知

具体参照测试项目: [test-export-excel-eug](https://github.com/EugeneHuang9638/test-export-excel-eug.git)

---
_Source: https://npm.io/package/export-excel-eug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
