English| [简体中文](./README-zh.md)
## Introduction
Luckyexcel is an excel import and export library adapted to [Luckysheet](https://github.com/mengshukeji/Luckysheet). It only supports .xlsx format files (not .xls).
## Demo
[Demo](https://mengshukeji.github.io/LuckyexcelDemo/)
## Features
Support excel file import to Luckysheet adaptation list
- Cell style
- Cell border
- Cell format, such as number format, date, percentage, etc.
- Formula
### Plan
The goal is to support all features supported by Luckysheet
- Conditional Formatting
- Pivot table
- Chart
- Sort
- Filter
- Annotation
- Excel export
## Usage
### CDN
```html
<script src="https://cdn.jsdelivr.net/npm/luckyexcel/dist/luckyexcel.umd.js"></script>
<script>
// Make sure to get the xlsx file first, and then use the global method window.LuckyExcel to convert
LuckyExcel.transformExcelToLucky(file, function(exportJson, luckysheetfile){
// After obtaining the converted table data, use luckysheet to initialize or update the existing luckysheet workbook
// Note: Luckysheet needs to introduce a dependency package and initialize the table container before it can be used
luckysheet.create({
container: 'luckysheet', // luckysheet is the container id
data:exportJson.sheets,
title:exportJson.info.name,
userInfo:exportJson.info.name.creator
});
});
</script>
```
> Case [Demo index.html](./src/index.html) shows the detailed usage
### ES and Node.js
#### Installation
```shell
npm install luckyexcel
```
#### ES import
```js
import LuckyExcel from 'luckyexcel'
// After getting the xlsx file
LuckyExcel.transformExcelToLucky(file, function(exportJson, luckysheetfile){
//Get the worksheet data after conversion
});
```
> Case [luckysheet-vue](https://github.com/mengshukeji/luckysheet-vue)
#### Node.js import
```js
var fs = require("fs");
var LuckyExcel = require('luckyexcel');
// Read a xlsx file
fs.readFile("House cleaning checklist.xlsx", function(err, data) {
if (err) throw err;
LuckyExcel.transformExcelToLucky(data, function(exportJson, luckysheetfile){
// Get the worksheet data after conversion
});
});
```
> Case [Luckyexcel-node](https://github.com/mengshukeji/Luckyexcel-node)
## Development
### Requirements
[Node.js](https://nodejs.org/en/) Version >= 6
### Installation
```
npm install -g gulp-cli
npm install
```
### Development
```
npm run dev
```
### Package
```
npm run build
```
A third-party plug-in is used in the project: [JSZip](https://github.com/Stuk/jszip), thanks!
## Communication
- Any questions or suggestions are welcome to submit [Issues](https://github.com/mengshukeji/Luckyexcel/issues/)
- [Gitter](https://gitter.im/mengshukeji/Luckysheet)
[Chinese community](./README-zh.md)
## Authors and acknowledgment
- [@wbfsa](https://github.com/wbfsa)
- [@wpxp123456](https://github.com/wpxp123456)
- [@Dushusir](https://github.com/Dushusir)
## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2020-present, mengshukeji
没有合适的资源?快使用搜索试试~ 我知道了~
Luckyexcel:Luckysheet导入导出库
共171个文件
js:34个
ts:34个
png:24个
1星 需积分: 50 39 下载量 70 浏览量
2021-04-27
20:00:14
上传
评论
收藏 11.43MB ZIP 举报
温馨提示
English | 介绍 Luckyexcel是一个适用于的Excel导入和导出库。 它仅支持.xlsx格式的文件(不支持.xls)。 演示版 特征 支持将Excel文件导入到Luckysheet适应列表 单元格样式 单元格边框 单元格格式,例如数字格式,日期,百分比等。 公式 计划 目标是支持Luckysheet支持的所有功能 条件格式 数据透视表 图表 种类 筛选 注解 Excel导出 用法 CDN < script src =" https://cdn.jsdelivr.net/npm/luckyexcel/dist/luckyexcel.umd.js " > </ script > < script > // Make sure to get the xlsx file first, and then use the global method window.Lucky
资源推荐
资源详情
资源评论
收起资源包目录
Luckyexcel:Luckysheet导入导出库 (171个子文件)
deploy.bat 273B
luckysheet.css 141KB
luckysheet.css 141KB
plugins.css 64KB
plugins.css 64KB
pluginsCss.css 28KB
pluginsCss.css 28KB
iconfont.css 19KB
iconfont.css 19KB
demo.css 8KB
demo.css 8KB
chartmix.css 3KB
chartmix.css 3KB
fontawesome-webfont.eot 162KB
fontawesome-webfont.eot 162KB
iconfont.eot 21KB
iconfont.eot 21KB
loading.gif 67KB
loading.gif 67KB
EwaAntH.gif 1KB
EwaAntH.gif 1KB
EwaAntV.gif 1KB
EwaAntV.gif 1KB
.gitignore 229B
index.html 393KB
index.html 393KB
demo_index.html 100KB
demo_index.html 100KB
index.html 8KB
index.html 8KB
paint_32px.ico 4KB
paint_32px.ico 4KB
paint_24px.ico 2KB
paint_24px.ico 2KB
paint_16px.ico 1022B
paint_16px.ico 1022B
luckysheet.umd.js 2.9MB
luckysheet.umd.js 2.9MB
luckysheet.esm.js 2.9MB
luckysheet.esm.js 2.9MB
plugin.js 507KB
plugin.js 507KB
chartmix.umd.min.js 458KB
chartmix.umd.min.js 458KB
sheetSparkline.js 95KB
sheetSparkline.js 95KB
iconfont.js 91KB
iconfont.js 91KB
sheetConditionFormat.js 80KB
sheetConditionFormat.js 80KB
sheetChart.js 80KB
sheetChart.js 80KB
sheetCell.js 80KB
sheetCell.js 80KB
sheetFormula.js 79KB
sheetFormula.js 79KB
sheetPicture.js 44KB
sheetPicture.js 44KB
sheetDataVerification.js 20KB
sheetDataVerification.js 20KB
sheetTable.js 12KB
sheetTable.js 12KB
sheetPivotTableData.js 9KB
sheetPivotTableData.js 9KB
gulpfile.js 6KB
sheetPivotTable.js 2KB
sheetPivotTable.js 2KB
demoFeature.js 1KB
sheetComment.js 978B
sheetComment.js 978B
package-lock.json 299KB
iconfont.json 17KB
iconfont.json 17KB
package.json 1KB
tsconfig.json 370B
VSWorkspaceState.json 171B
LICENSE 1KB
luckysheet.umd.js.map 9.27MB
luckysheet.umd.js.map 9.27MB
luckysheet.esm.js.map 9.27MB
luckysheet.esm.js.map 9.27MB
README-zh.md 3KB
README.md 3KB
.npmignore 217B
FontAwesome.otf 132KB
FontAwesome.otf 132KB
CFicons.png 31KB
CFicons.png 31KB
waffle_sprite.png 8KB
waffle_sprite.png 8KB
ui-icons_777777_256x240.png 7KB
ui-icons_777777_256x240.png 7KB
ui-icons_444444_256x240.png 7KB
ui-icons_444444_256x240.png 7KB
ui-icons_555555_256x240.png 7KB
ui-icons_555555_256x240.png 7KB
ui-icons_ffffff_256x240.png 6KB
ui-icons_ffffff_256x240.png 6KB
ui-icons_cc0000_256x240.png 4KB
ui-icons_777620_256x240.png 4KB
共 171 条
- 1
- 2
资源评论
- m3982133162022-04-19一点帮助也没有,我还以为是开发示例
- LearnBC2022-07-11Luckyexcel-master
易洪艳
- 粉丝: 31
- 资源: 4503
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功